<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed><type>rich</type><version>1.0</version><provider_name>phorkie</provider_name><provider_url>https://p.cweiske.de/</provider_url><title>TYPO3: Escaping ampersand "&amp;" in fluid templates </title><author_name>Christian Weiske</author_name><cache_age>86400</cache_age><width>900</width><height>900</height><html>&lt;!-- embedding all files of https://p.cweiske.de/716 --&gt;
&lt;link rel="stylesheet" href="https://p.cweiske.de/css/embed.css"/&gt;
&lt;div class="phork" id="716"&gt;
    &lt;div class="phork-file"&gt;
 &lt;div class="phork-content"&gt;
  
&lt;div class="document"&gt;


&lt;p&gt;We like well-formed fluid HTML templates, because we can spot errors automatically by validating them with xmllint.&lt;/p&gt;
&lt;p&gt;This did work with TYPO3 v7:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
&amp;lt;v:variable.set name=&amp;quot;url&amp;quot;&amp;gt;/?eID=tx_ext_action&amp;lt;![CDATA[&amp;amp;]]&amp;gt;param2={record.uid}&amp;lt;/v:variable.set&amp;gt;
&lt;/pre&gt;
&lt;p&gt;The CDATA sections are dropped in TYPO3 v8.&lt;/p&gt;
&lt;p&gt;Workaround:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
&amp;lt;v:variable.set name=&amp;quot;url&amp;quot;&amp;gt;&amp;lt;f:format.htmlentitiesDecode&amp;gt;/?eID=tx_ext_action&amp;amp;amp;param2={record.uid}&amp;lt;/f:format.htmlentitiesDecode&amp;gt;&amp;lt;/v:variable.set&amp;gt;
&lt;/pre&gt;
&lt;/div&gt;

 &lt;/div&gt;
 &lt;div class="phork-meta"&gt;
  &lt;a href="https://p.cweiske.de/716/rev-raw/5f54b95ca9282aba5ca4147c452e3630271e2596/README.rst" style="float: right"&gt;view raw source&lt;/a&gt;
  &lt;a href="https://p.cweiske.de/716#README.rst"&gt;README.rst&lt;/a&gt;
 &lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</html></oembed>
