HTML entities in Textile
-
15-04-2021 - |
Question
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.
Solution
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.
OTHER TIPS
RedCloth does not get hex values in html entities, but others, like
or €
are processed properly.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow