HTML entities in Textile

601 Views Asked by At

HTML entities are not displayed correctly in Textile because the ampersand is converted into & by the system. Is there any way to input e.g. ⌘ and actually get ⌘?

Wrapping the entity in ==⌘== does disable Textile processing for that block. Maybe that's as good as it gets?

I'm using RedCloth.

2

There are 2 best solutions below

0
On BEST ANSWER

After having had a look through RedCloth sources, there does not seem to be a way of doing this.

Maybe it's as well, on second thought: Textile is not necessarily meant to output HTML, but HTML entities are entirely an HTML solution. I'll just input funky characters directly.

0
On

RedCloth does not get hex values in html entities, but others, like   or € are processed properly.