[Solved] Use regular expressions to remove unwanted html from array [closed]
PHP or JS? JS: http://jsfiddle.net/mplungjan/fpzEn/ var str = “description\”:\”SOME RELEVANT TEXT…<img width=”1″ height=”1″ src=”http:\/\/someurl.com.feedsportal.com\/c\/33818\/f\/608449\/s\/1c52b2b5\/mf.gif” border=”0″\/><div class=”mf-viral”><table border=”0″><tr><td valign=’middle’><a href=\\\”http:\/\/share.feedsportal.com\/viral\/sendEmail.cfm?lang=en&title=some_title&link=http%3A%2F%2Fwww.someurl.com%2Fworld-newssome_title%2FArticle1-805340.aspx\\\” target=\\\”_blank\\\”><img src=\\\”http:\/\/res3.feedsportal.com\/images\/emailthis2.gif\\\” border=\\\”0\\\” \/><\/a><\/td>” alert(str.split(/description”:”/)[1].split(/</)[0]) solved Use regular expressions to remove unwanted html from array [closed]