Jump to content

[SOLVED] how to completely remove tak from html source


madrazel

Recommended Posts

in example:

 

<script /*whatever here*/> /*anything between, Chinese, Korean, Arabic characters, line breaks etc..*/ </script> 

 

i done this:

 

 $str = preg_replace('/<script(\n|\t|-|[[]|[]]|[a-z0-9!?@&%*+<>(){};:,._=\'"\/| ])+<\/script>/i','', $str); 

 

but it still occasionally leaves behind some tags..

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.