Remove all script tags from content

This commit is contained in:
logmanoriginal 2016-08-03 20:32:26 +02:00
parent 83d7f138ed
commit da3127e31b

View file

@ -32,6 +32,7 @@ class LeJournalDuGeekBridge extends BridgeAbstract{
}
}
$text = preg_replace('#<script(.*?)>(.*?)</script>#is', '', $text);
$text = strip_tags($text, '<p><b><a><blockquote><img><em><br/><br><ul><li>');
return $text;
}