mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-02-10 16:01:33 +00:00
cleanup sanitize_rss()
This commit is contained in:
@@ -2608,17 +2608,6 @@
|
|||||||
function sanitize_rss($link, $str) {
|
function sanitize_rss($link, $str) {
|
||||||
$res = $str;
|
$res = $str;
|
||||||
|
|
||||||
/* $res = preg_replace('/<script.*?>/i',
|
|
||||||
"<p class=\"scriptWarn\">Disabled script: ", $res);
|
|
||||||
|
|
||||||
$res = preg_replace('/<\/script.*?>/i', "</p>", $res); */
|
|
||||||
|
|
||||||
/* $res = preg_replace('/<embed.*?>/i', "", $res);
|
|
||||||
|
|
||||||
$res = preg_replace('/<object.*?>.*?<\/object>/i',
|
|
||||||
"<p class=\"objectWarn\">(Disabled html object
|
|
||||||
- flash or other embedded content)</p>", $res); */
|
|
||||||
|
|
||||||
if (get_pref($link, "STRIP_UNSAFE_TAGS")) {
|
if (get_pref($link, "STRIP_UNSAFE_TAGS")) {
|
||||||
$res = strip_tags($res, "<p><a><i><em><b><strong><blockquote><br><img>");
|
$res = strip_tags($res, "<p><a><i><em><b><strong><blockquote><br><img>");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user