title: How to remove all style attributes using jquery and also in PHP?
body: <blockquote>
    <p><strong>Possible Duplicates:</strong><br>
    <a href="https://stackoverflow.com/questions/3026096/php-regexp-remove-all-attributes-from-an-html-tag">php regexp: remove all attributes from an html tag</a><br>
    <a href="https://stackoverflow.com/questions/5517255/remove-style-attribute-from-html-tags">Remove style attribute from HTML tags</a>  </p>
  </blockquote>
  
  
  
  <p>EDITED:</p>
  
  <p>For example i am having the following content:</p>
  
  <pre><code>    &lt;div style="text-indent: -76.5pt; margin: 0in 54.9pt 0pt 76.5pt;"&gt;&lt;strong&gt;Motion with Constant Acceleration&lt;/strong&gt;&lt;/div&gt;
  </code></pre>
  
  <p><strong>I need to <em>remove</em> all style attributes using jQuery and PHP</strong></p>
  
  <p>My output should look like this:</p>
  
  <pre><code>    &lt;div style=""&gt;&lt;strong&gt;Motion with Constant Acceleration&lt;/strong&gt;&lt;/div&gt;
  </code></pre>
  
  <p><strong>OR</strong></p>
  
  <pre><code>    &lt;div&gt;&lt;strong&gt;Motion with Constant Acceleration&lt;/strong&gt;&lt;/div&gt;
  </code></pre>
  
  <p>How can this be done.. Any help will be thankful and grateful...</p>
  
  <p>Thanks in advance...</p>