Alter the link text in twig

Created on 17 October 2024, 6 months ago

Problem/Motivation

In twig, using {{ 'email@exemple.test'|spamspan }} renders as <a href="mailto:email@exemple.test">email@exemple.test</a>
1. Is there a way to alter the link text in order to render as <a href="mailto:email@exemple.test">Send mail</a> while keeping the email address obfuscated?
2. Kind of same question when using a content type email field: can the field formatter or the twig be altered?

πŸ’¬ Support request
Status

Active

Version

3.2

Component

Documentation

Created by

πŸ‡«πŸ‡·France PhilY πŸ‡ͺπŸ‡ΊπŸ‡«πŸ‡· Paris, France

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024