HTML entities tag?

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.


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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs