WordPress.org

Support

Support » Plugins and Hacks » [Resolved] disable html

[Resolved] disable html

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jeff Starr
    Participant

    @specialk

    It’s not possible by default, but if you want to edit “user-submitted-posts.php” around line 100, locate this line:

    $content = stripslashes($_POST['user-submitted-content']);

    ..and add this line just below it:

    $content = strip_tags($content);

    That uses PHP’s strip_tags() to strip HTML and PHP tags from the submitted content. Other fields may need similar treatment, depending on your goals.

    perfect. thanks so much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] disable html’ is closed to new replies.