[TYPO3-mvc] encoded JSON string in TagViewHelper Attribute

Philipp philippwrann at gmx.at
Fri Sep 13 09:39:13 CEST 2013


Hey,

i cant manage to get a well-formated json sting within a tag attribute.Got something like:
{"pos1":[{"something":123}],"pos2:[{"something":1123]}

And i want it to be like

<tagname data-tags='THEJSONSTRING'></tagname>

So a single-quoted attribute

NOT Possible. I even transformed it using regex but typo thinks it knows better and makes double-quoted on some fucking post-process.
Also i cant just escape the double-quotes, typo/fluid also does not like this.

So whats the simple solution for this basic stuff?

Can i turn off sourcecode cleaning somehow?


More information about the TYPO3-project-typo3v4mvc mailing list