diff options
| author | 2022-02-05 14:15:32 +0100 | |
|---|---|---|
| committer | 2022-02-05 14:15:32 +0100 | |
| commit | cb36fe25a75b764e020760fd0d918bea13cadd13 (patch) | |
| tree | ed5cb7555476798e34417fca71c5d0a15b6f7fab /lib/lib_rss.php | |
| parent | ba1259bb2100a776ced28b3e068f17d97f3fd4fb (diff) | |
Improved: Fetch articles with selector but do not delete the class attribute. (Simplepie: new method: rename_attribute) (#4175)
* added to simplepie: rename_attributes
* rename the class attribute
* Update lib/SimplePie/SimplePie/Sanitize.php
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
* added 'id' as attribute to rename to 'data-sanitized-id'
* Update lib_rss.php
* source code in sync with simplepie upstream
* fixed parameters
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'lib/lib_rss.php')
| -rw-r--r-- | lib/lib_rss.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/lib_rss.php b/lib/lib_rss.php index bc4b06497..5b335e8d8 100644 --- a/lib/lib_rss.php +++ b/lib/lib_rss.php @@ -247,6 +247,7 @@ function customSimplePie($attributes = array()) { 'object', 'param', 'plaintext', 'script', 'style', 'svg', //TODO: Support SVG after sanitizing and URL rewriting of xlink:href )); + $simplePie->rename_attributes(array('id', 'class')); $simplePie->strip_attributes(array_merge($simplePie->strip_attributes, array( 'autoplay', 'class', 'onload', 'onunload', 'onclick', 'ondblclick', 'onmousedown', 'onmouseup', 'onmouseover', 'onmousemove', 'onmouseout', 'onfocus', 'onblur', |
