aboutsummaryrefslogtreecommitdiff
path: root/lib/lib_rss.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/lib_rss.php')
-rw-r--r--lib/lib_rss.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/lib_rss.php b/lib/lib_rss.php
index b608743f3..e020236ea 100644
--- a/lib/lib_rss.php
+++ b/lib/lib_rss.php
@@ -193,7 +193,10 @@ function timestamptodate ($t, $hour = true) {
return @date ($date, $t);
}
-function html_only_entity_decode(string $text): string {
+/**
+ * @param string|null $text
+ */
+function html_only_entity_decode($text): string {
static $htmlEntitiesOnly = null;
if ($htmlEntitiesOnly === null) {
$htmlEntitiesOnly = array_flip(array_diff(