[SOLVED] Spam-protection of email addresses within a “Table” content element does not work

Hello,

I am currently working on a TYPO3 13 website using the Bootstrap Package 15 and need to display spam-protected email addresses within a “Table” content element.

To achieve this, I modified the corresponding Partial “columns” as follows:

<f:format.raw>{cell}</f:format.raw>

This ensures that the links are now rendered correctly. However, this modification seems to disable TYPO3’s built-in @ → (at) spam protection, which otherwise works as expected across the rest of the website.

Could you please advise on how to maintain spam protection for email addresses within table content elements while preserving correct link rendering?

Thank you in advance for your support!

Best regards,
Stephan

Welcome to talk.typo3.org, Stephan!

You need to use f:format.html together with a parseFunc to get spam protected links working in TYPO3 table cells:

<f:format.html parseFuncTSPath="lib.parseFunc">{cell -> f:format.nl2br()}</f:format.html>

Another possible syntax would be:

{cell -> f:format.nl2br() -> f:format.html(parseFuncTSPath: 'lib.parseFunc')}

Using the parseFunc will also enable links with t3 syntax:

<a href="t3://page?uid=123">some link</a>
1 Like

Thanks you Peter,
unfortunately, this syntax does not change the output. Inside the table the @s remain, whereas in the remaining page they are being replaced as intended.

Do you have any other hint, what I could try?

Thanks a lot in advance.
Stephan

Yesterday I made a test in one of my v13 installations and it worked well.
Are you sure you changed the correct template file and also added your sitepackage folder to the template paths of Fluid Styled Content?

Dear Peter you are absolutely right. It works now. I may have mixed up the path of my of bootstrap_package and sitepackage. Thanks alot for you grat help!
Stephan