Restrict user HTML tags ? (6 posts)

  1. warrenonline
    Posted 9 years ago #

    I'm designing a template for a WordPress site. I would like the HTML editor to strip out certain tags used by users ( such as the "font" tag ).

    Is there a way for WordPress to strip tags out of a post so it doesn't mess up my CSS ?

  2. Mark (podz)
    Support Maven
    Posted 9 years ago #

    The file /wp-includes/kses.php has all the allowed tags so you could add/remove as you need?

  3. Comments by default only allow a limited number of tags. I bet you're just thinking it doesn't as you're testing while logged in (it doesn't limit you as it assumes you know best).

  4. warrenonline
    Posted 9 years ago #

    Thanks for the replys... I just want to start by limiting HTML in posts and not comments. I'll give /wp-includes/kses.php an edit.

  5. There is an array in there to control posts, but it must only affect users of a certain level or something as I never see it touching my posts.

  6. warrenonline
    Posted 9 years ago #

    Editing kses.php doesn't seem to be working. It still allows users to post tags I don't want in there. Anything else ?

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.