HTML entities tag?


#1

I have a Title in my CMS which contains an & sign is there any way to
have radiant html encode it using tags? (Because as everybody knows &
signs are dangerous for validation)

I can write an extension for this, but it seems overkill… I expect
it would be a standard tag really…

<r:html_entities><r:title /></r:html_entites>

If not and people think it’s worth it i’ll write a patch for Radiant.

TIA,
-Adam


#2

Try <r:escape_html>…</r:escape_html>.