mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-28 12:20:12 +02:00
Remove all script tags from content
This commit is contained in:
@@ -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>');
|
$text = strip_tags($text, '<p><b><a><blockquote><img><em><br/><br><ul><li>');
|
||||||
return $text;
|
return $text;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user