summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaciej Zgadzaj2014-12-23 18:24:17 (GMT)
committerMaciej Zgadzaj2014-12-23 18:24:17 (GMT)
commit35cde8c4558aeeae76c40a93f29bb1b424fd269c (patch)
treea0305f116dd2219f21c941f55bedbf82ee91f983
parent710963fff3be4fcae06bf15ef1f4b155eee5df5a (diff)
Issue #1791856 by ice5nake: Certain html entities get double encodedHEAD7.x-2.0-rc47.x-2.x
-rw-r--r--theme/theme.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/theme/theme.inc b/theme/theme.inc
index 0290a2a..0e1ae53 100644
--- a/theme/theme.inc
+++ b/theme/theme.inc
@@ -77,7 +77,7 @@ function template_preprocess_views_view_views_rss(&$variables) {
// it will be encoded again when the whole feed array will be passed to
// format_xml_elements(), let's make sure we decode it here first.
if (is_string($value)) {
- $value = htmlspecialchars_decode($value, ENT_QUOTES);
+ $value = decode_entities($value);
}
// Start building XML channel element array compatible with format_xml_elements().
@@ -153,7 +153,7 @@ function template_preprocess_views_view_views_rss(&$variables) {
// it will be encoded again when the whole feed array will be passed to
// format_xml_elements(), let's make sure we decode it here first.
if (is_string($value)) {
- $value = htmlspecialchars_decode($value, ENT_QUOTES);
+ $value = decode_entities($value);
}
// Start building XML element array compatible with format_xml_elements().