Escape Kirbytag in info field

How do I write a Kirbytag inside an info field without it getting rendered?

Something like…

text: "Use \(email: name@provider.com\)"

?

@daizumi did you find a solution for this ?
Or does somebody know how to achieve that ?
:space_invader:

Have a look at how it is done on the getkirby.com website

<?php echo str_replace('(\\', '(', kirbytext($page->text())) ?>

@texnixe thanks a lot for the input! I couldn’t figure out how to use str_replace in the blueprint info field, so I just replaced the parentheses with the number code what works fine for me :

info:
   label: Link einfügen
   type: info
   text: >
      &#40;link: http://myLink.xyz text: myLink.xyz popup: yes&#41;

to get this: (link: http://myLink.xyz text: myLink.xyz popup: yes). How would it work with str_replace?

1 Like

Ah, sorry, that was a misunderstanding on my side, you can’t use PHP code in blueprints. Your solution is the the way to go.

1 Like

Ah ok, but thanks a lot anyway for the info !