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.
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.
{{somevalue|escape}}
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 siteAsked: 2010-10-12 08:14:13 -0500
Seen: 36 times
Last updated: Oct 12 '10
Copyright Askbot, 2010-2011. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.