Static XML datasource strips `$` from content
A bug in 2.2, submitted by nickdunn on 02 December 2010
Announcement
Symphony's issue tracker has been moved to Github.
Issues are displayed here for reference only and cannot be created or edited.
Browse
Closed#433: Static XML datasource strips `$` from content
I think the problem is due to double quotes:
$result = "<test>$a</test>";
Inside content.blueprintsdatasources.php
I’ve replaced line #1026 (Symphony 2.1.2):
'$result = "%s";',
with:
'$result = \'%s\';',
It works but I bet there are smarter ways to fix that. ;)
Works for me, essentially passing it as a literal will stop this bug, so added in this commit
You can simplify it if you want.
$value = sprintf("\$result = '%s';", addslashes(trim($fields['static_xml'])));
This issue is closed.
Try adding this as the XML:
After saving the result: