diff options
| author | Andrew Dolgov <fox@madoka.spb.ru> | 2007-05-18 08:14:44 +0100 |
|---|---|---|
| committer | Andrew Dolgov <fox@madoka.spb.ru> | 2007-05-18 08:14:44 +0100 |
| commit | 1ac0baf4ea92919bef895c03ffcf22a808c7f2d0 (patch) | |
| tree | 091f83f77a414ad09670ddd6b1270f0fb206e977 /functions.php | |
| parent | 0dba8103fafd8e6bba82f0e0f997964adfec1bad (diff) | |
mobile: sanitize article content
Diffstat (limited to 'functions.php')
| -rw-r--r-- | functions.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/functions.php b/functions.php index e316f74f5..62f0cdd02 100644 --- a/functions.php +++ b/functions.php @@ -2637,10 +2637,10 @@ } } - function sanitize_rss($link, $str) { + function sanitize_rss($link, $str, $force_strip_tags = false) { $res = $str; - if (get_pref($link, "STRIP_UNSAFE_TAGS")) { + if (get_pref($link, "STRIP_UNSAFE_TAGS") || $force_strip_tags) { $res = strip_tags($res, "<p><a><i><em><b><strong><blockquote><br><img>"); } |