[development] Strip_tags and JS

Earl Miles merlin at logrus.com
Thu Jun 10 21:58:02 UTC 2010


On 6/10/2010 12:39 PM, Jamie Holly wrote:
> $text= preg_replace('/<script.*?<\/script>/xmsi', '', $text) should do
> the trick.

$text = strip_tags(filter_xss_admin($text)) is easier.


More information about the development mailing list