{"type":"rich","version":"1.0","provider_name":"phorkie","provider_url":"https:\/\/p.cweiske.de\/","title":"TYPO3: Escaping ampersand \"&\" in fluid templates ","author_name":"Christian Weiske","cache_age":86400,"width":900,"height":900,"html":"<!-- embedding all files of https:\/\/p.cweiske.de\/716 -->\n<link rel=\"stylesheet\" href=\"https:\/\/p.cweiske.de\/css\/embed.css\"\/>\n<div class=\"phork\" id=\"716\">\n    <div class=\"phork-file\">\n <div class=\"phork-content\">\n  \n<div class=\"document\">\n\n\n<p>We like well-formed fluid HTML templates, because we can spot errors automatically by validating them with xmllint.<\/p>\n<p>This did work with TYPO3 v7:<\/p>\n<pre class=\"literal-block\">\n&lt;v:variable.set name=&quot;url&quot;&gt;\/?eID=tx_ext_action&lt;![CDATA[&amp;]]&gt;param2={record.uid}&lt;\/v:variable.set&gt;\n<\/pre>\n<p>The CDATA sections are dropped in TYPO3 v8.<\/p>\n<p>Workaround:<\/p>\n<pre class=\"literal-block\">\n&lt;v:variable.set name=&quot;url&quot;&gt;&lt;f:format.htmlentitiesDecode&gt;\/?eID=tx_ext_action&amp;amp;param2={record.uid}&lt;\/f:format.htmlentitiesDecode&gt;&lt;\/v:variable.set&gt;\n<\/pre>\n<\/div>\n\n <\/div>\n <div class=\"phork-meta\">\n  <a href=\"https:\/\/p.cweiske.de\/716\/rev-raw\/5f54b95ca9282aba5ca4147c452e3630271e2596\/README.rst\" style=\"float: right\">view raw source<\/a>\n  <a href=\"https:\/\/p.cweiske.de\/716#README.rst\">README.rst<\/a>\n <\/div>\n<\/div>\n<\/div>\n"}
