I got a html String in javascript and using regex I want to remove id, style and class attributes in html tags, for example I have:
New York City.<div style="padding:20px" id="upp" class="upper"><div style="background:#F2F2F2; color:black; font-size:90%; padding:10px 10px; width:500px;">This message is.</div></div>
I want this String to become:
New York City.<div><div>This message is.</div></div>
See Question&Answers more detail:os