Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Restricting the use of certain HTML tags?

edited September 2006 in Vanilla 1.0 Help
Is there a way to make it so that Vanilla will ignore certain HTML tags but leave others alone? My reason for asking is that a few of our more...enterprising, shall we say, users have figured out ways to break entire discussions by the use of the 'div' tag. I don't want to completely disable the use of HTML formatting, but right now, that's my only way of stopping it.

Any thoughts?

Comments

  • well there is an option in the html formatter to 'police' tags (ie. make sure there are no stray opening or closing ones), but if you would rather restrict the use of tags then you could add the tags you don't want users to use to the $Html_DisallowedTags array. Alternately, you could use the kses-based formatter, which gives you much more control over what users can use.
  • I installed the kses formatter, and while that solves the problem of not being able to use certain tags, it also kills any line breaks. Feature or bug?
  • Neither. It doesn't automatically convert newlines to line breaks.
This discussion has been closed.