aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2022-03-23 11:29:33 +0100
committerGravatar GitHub <noreply@github.com> 2022-03-23 11:29:33 +0100
commit92b0ffe05cd426b85fe2575b8d9a1d39b1410b3c (patch)
tree888a7606d77a52d2ca06c2bf6e0a7ca38b86b1fa /lib
parente8af54a476a7c311827700dd814b81b43b4180f5 (diff)
Fix handling of authors with ampersand & (#4287)
Especially needed for HTML+XPath Web scraping as it makes the rest of the pipeline fail to handle special characters.
Diffstat (limited to 'lib')
-rw-r--r--lib/lib_rss.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/lib_rss.php b/lib/lib_rss.php
index 6929b316c..ba7b5b5d8 100644
--- a/lib/lib_rss.php
+++ b/lib/lib_rss.php
@@ -196,6 +196,7 @@ function timestamptodate ($t, $hour = true) {
}
/**
+ * Decode HTML entities but preserve XML entities.
* @param string|null $text
*/
function html_only_entity_decode($text): string {