What HTML tags are allowed on Stack Exchange sites?
up vote
391
down vote
favorite
287
|
The Stack Overflow site engine, as you know, uses Markdown for questions and answers. Per the Markdown spec, you are allowed to freely intermix HTML and Markdown tags. Not all HTML tags are allowed, as that would be an XSS paradise. Which HTML tags have been whitelisted and are allowed to be used on StackExchange sites? Return to FAQ index
support faq markdown design
|
|||
add a comment |
|
1 Answer
up vote
178
down vote
|
Allowed HTML TagsThe Stack Exchange engine allows only the following safe, whitelisted subset of HTML tags:
Note that since we allow the above HTML tags, to have tags show up as text you need to escape the Allowed Attributes
|
share
locked by random Mar 22 at 12:36
|
edited Sep 24 at 17:16
|
community wiki
9 revs, 8 users 57%
random |
This post has been locked due to the high amount of off-topic comments generated. For extended discussions, please use chat.
You must log in to answer this question.
protected by Community♦ Jul 31 '11 at 11:38
Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.
Would you like to answer one of these unanswered questions instead?
help
link underAdd Comment
, as this will provide you with a full list. This is a great posts/wiki by the way. – Aaron Newton Dec 5 '11 at 21:48<br "100%" "300" src="/img/spacer.gif">
– Val Mar 24 at 21:43<center>
on this list? – Mew Oct 8 at 9:28