WordPress.org

Ready to get started?Download WordPress

Forums

Restrict HTML Tags? (5 posts)

  1. IDB
    Member
    Posted 9 years ago #

    Is there a way to restrict certain HTMl tags from being used in posts and comments? Things like <object><div><script> etc.

  2. carthik
    Member
    Posted 9 years ago #

    The comment text box will have a string of allowed tags above it, mine is
    <b> <i> <strike>
    those are the allowed tags for comments.

  3. IDB
    Member
    Posted 9 years ago #

    Thanks for the quick reply. So there is no restriction on what actual author's can use in the way of HTML tags ?

  4. carthik
    Member
    Posted 9 years ago #

    I guess not. It's your blog, and you should be free to add whatever tags you want to :) If you have guest authors on the blog, or if it's a community blog, you could give your guest authors guidelines as to which tags are not to be used.
    I see your point. :)

  5. Matt Mullenweg
    Troublemaker
    Posted 9 years ago #

    You could apply the KSES filter to the_content and restrict it to whatever you want.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.