• warrenonline

    (@warrenonline)


    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 ?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The file /wp-includes/kses.php has all the allowed tags so you could add/remove as you need?

    Alex Mills

    (@viper007bond)

    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).

    Thread Starter warrenonline

    (@warrenonline)

    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.

    Alex Mills

    (@viper007bond)

    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.

    Thread Starter warrenonline

    (@warrenonline)

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Restrict user HTML tags ?’ is closed to new replies.