WordPress.org

Ready to get started?Download WordPress

Forums

How to allow certain HTML codes in comments? (6 posts)

  1. XeroCool
    Member
    Posted 10 years ago #

    I want users on my site to post html comments that dont execute that will show. For example, If someone types <title>, It will not show because Its trying to read title and even If they did <title>fkifd</title>, It wouldn't show.

    How do I allow HTML tags like <title>

    etc...to work?...

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

    This has been asked many times before.
    A search will show many useful threads.

  3. maskedmofo
    Member
    Posted 9 years ago #

    I have searched the documentation and the forums for help with controlling how html is handled in comments, to no avail.

    Could someone kindly point me toward any relevant articles concerning this?

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

    The file that you need is
    /wp-includes/kses.php

  5. maskedmofo
    Member
    Posted 9 years ago #

    Thank you Podz, but as a novice, I need a bit more information. Is there any documentation regarding how to alter this file to alter or disable html in comments only? Similar to how this submit area only allows these specified tags (a em strong code ul ol li blockquote).

  6. maskedmofo
    Member
    Posted 9 years ago #

    For anyone else concerned with this issue, I believe I found some helpful docs here.

    http://codex.wordpress.org/Answers-Configuration#Stopping_HTML_in_Comments

    Thanks again, Podz!!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.