asked 2010-10-12 08:14:13 -0500Benoit
I'm trying to have some text bracketed with <> like: < option >
However, if I don't put a space between the first < and the word, it is interpreted as an html tag.
Is there a way to escape the < ?
It's not a big deal, just a cosmetic issue.
answered 2010-10-12 10:08:06 -0500kraryal
To escape html characters, you usually want the & code for it.
For < use "<" where you want "<". For > use ">" where you want ">".
This link has most of the characters. http://www.ascii.cl/htmlcodes.htm
where do you need to escape it? If it's in the django or jinja template (askbot master branch already switched to jinja - if you need help with porting any of your custom templates - pls let me know), then use "escape" filter on values.
and it will do what @kraryal said automatically.
Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.create your Q&A site
Asked: 2010-10-12 08:14:13 -0500
Seen: 36 times
Last updated: Oct 12 '10