borlabs

Replace script tag

Nov 24th, 2017
336
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.16 KB | None | 0 0
  1. $reply_ticket[0]['ticket_content'] =  preg_replace('/<((script)[^>]*)>(.*)\<\/(script)>/Us', '&lt;$1&gt;$3&lt;/script&gt;', $reply_ticket[0]['ticket_content']);
Add Comment
Please, Sign In to add comment