0

I have an HTML encoded string (encoded by htmlentities PHP function):

<p><b><u style="background-color: rgb(255, 255, 0);"><font face="Comic Sans MS">adsasdasdasdasdas</font></u></b></p>

I need to extract and display the text only from this string using JavaScript. I have tried toString, unescape function and some other function but these functions were not very helpful for me.

I a trying to append the text only from this string on the success function of AJAX call.

This technique is not working for me : http://jsfiddle.net/k65s3/

0 Answers0