Issue #779760 by icosa, trisketonni: fixed decoding of ' for check_plain()
authorMaciej Zgadzaj
Sun, 9 Oct 2011 19:29:00 +0000 (21:29 +0200)
committerMaciej Zgadzaj
Sun, 9 Oct 2011 19:29:00 +0000 (21:29 +0200)
views/views_rss_views_fields.theme.inc

index f81bd0d..90a91e8 100644 (file)
@@ -72,7 +72,7 @@ function template_preprocess_views_rss_fields_item(&$vars) {
   $row = '';
   foreach ($item as $key => $value) {
     if ($value) {
-      $row .= "<$key>". check_plain(htmlspecialchars_decode($value)) ."</$key>\n";
+      $row .= "<$key>". check_plain(htmlspecialchars_decode($value, ENT_QUOTES)) ."</$key>\n";
     }
   }