TYPO3-Headless / headless_powermail

Connects together EXT:headless and EXT:powermail
GNU General Public License v2.0
0 stars 6 forks source link

Links in fields still remain typolinks #28

Open juliasaurin opened 1 year ago

juliasaurin commented 1 year ago

Hello,

If i add a link to my e.g. checkbox, the link will be also a typolink in frontend. I add following code into my checkbox-option:

Ich habe die < a href="t3://page?uid=46">Datenschutzerklärung< /a> gelesen.|ja

How can i cast this to a propper link?

kitzberger commented 6 months ago

@juliasaurin, just had a look into this issue here.

Problem is that the partial to render a headless checkbox isn't using the vh:string.escapeLabels viewhelper that EXT:powermail's version of that partial is doing.

Try this here in Check.html

- label: setting.label,
+ label: '{setting.label -> vh:string.escapeLabels()},

And maybe change the link format from <a href="t3://page?uid=46">Datenschutzerklärung</a> to <f:link.page pageUid="1">privacy accepted</f:link.page> as Alex said in https://github.com/in2code-de/powermail/issues/265