How to remove code from HTML string?
Posted
by TruMan1
on Stack Overflow
See other posts from Stack Overflow
or by TruMan1
Published on 2010-04-21T01:15:59Z
Indexed on
2010/04/21
1:23 UTC
Read the original article
Hit count: 328
I have a variable that has this string:
<DIV><SPAN style="FONT-FAMILY: Tahoma; FONT-SIZE: 10pt">[If the confirmation is active the subscriber will receive this email after succesfully confirming. If not, this will be the first and only email he will receive.]</SPAN></DIV>
<p align=center>
<input class=fieldbox10 type = 'button' name = 'button' value = 'Close' onclick = "window.close()">
</p>
How do I remove the below string without worrying about spaces via Javascript (or jQuery)?
<p align=center>
<input class=fieldbox10 type = 'button' name = 'button' value = 'Close' onclick = "window.close()">
</p>
© Stack Overflow or respective owner