ohdang888 Posted May 21, 2010 Share Posted May 21, 2010 i have the html markup of a page in $hmtl from file_get_contents() how do i strip out not only just the <script> and <iframe> tags, but also the content within a <script> tag? strip_tags() just gets rid of the tag itself, but i wanna get rid of the content in it too. Thanks Link to comment https://forums.phpfreaks.com/topic/202536-strip-script-tags/ Share on other sites More sharing options...
ohdang888 Posted May 21, 2010 Author Share Posted May 21, 2010 btw i've found numerous custom functions on google for this but none of them work but found it with prep_replace Link to comment https://forums.phpfreaks.com/topic/202536-strip-script-tags/#findComment-1061750 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.