How can i strip html tag except the content inside the pre tag
code
$content="
<div id="wrapper">
Notes
</div>
<pre>
<div id="loginfos">asdasd</div>
</pre>
";
While using strip_tags($content,”) the html inside the pre tag too stripped of. but i don’t want the html inside pre stripped off
You may do the following:
A bit kludgy but should work.