简体   繁体   中英

TYPO3 8.7.32: html is output as text in setup

Hello I use the mindshap cookie hint extention which is also displayed in the frontend. everything except the link is also output correctly. Does anyone know how I can add a link to hint.message or what I did wrong.

plugin.tx_mindshapecookiehint {

  _LOCAL_LANG.de {
        hint.learnMore = Weitere Informationen.
        hint.dismiss = OK
        hint.message = Diese Webseite verwendet Cookies. Wenn Sie weiter auf dieser Seite bleiben, stimmen Sie den <a class="cookie-link" href="foo">Datenschutzbestimmungen</a> zu.
  }
}

Solution: I added in the Cookie file this:

 message: '<f:format.raw><f:translate key="hint.message" /></f:format.raw>'

Thanks in advance

hit the Local Language lables are just plaintext. the encoding usually happens at the output. most likly fluid templating is used for the output. which html-encodeds by default to avoid security problems.

you might use the fluid view helper <f:format.raw> to avoid escaping in your template. (but your langauge string must have the properencoding

and never put user input into format.raw as this is almost certainly a security issue

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM