Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In the file views_xml.module
function views_xml_strip_illegal_chars($input) {
$output = str_replace('>', '&rt;', $output); //encode right-angled bracket
Please replace it to:
$output = str_replace('>', '&qt;', $output); //encode right-angled bracket
Comment | File | Size | Author |
---|---|---|---|
#4 | views-view-xml--featured-on-homepage.tpl_.php_.zip | 3.38 KB | sher1 |
Comments
Comment #1
pvasili CreditAttribution: pvasili commentedhm... next
input: "
output: &аmp;quot;
:(
I think better use htmlspecialchars ()
Comment #2
andypostFixed in 6-dev
Comment #3
sher1 CreditAttribution: sher1 commentedI found a site http://www.sourcerally.net/Scripts/39-Convert-HTML-Entities-to-XML-Entities
that showed how to convert html entities to xml safe ones.
Here is a code snippet of what I did to my custom view - in case it helps someone else and also to consider in replacing the views_xml_strip_illegal_chars function:
Comment #4
sher1 CreditAttribution: sher1 commentedI added the attached file since the code get's truncated in the view