WordPress.org

Ready to get started?Download WordPress

Forums

comment author wp-facebook entities (3 posts)

  1. digitalbart
    Member
    Posted 4 years ago #

    In my comments.php, I have a facebook plugin that creates entities instead of a string. So I would like to use html_entity_decode() on the comment_author() function... but it does not work? Any ideas.

  2. digitalbart
    Member
    Posted 4 years ago #

    Will wp_specialchars_decode work? I have never used this function before?

  3. digitalbart
    Member
    Posted 4 years ago #

    I was able to use the get_comment_author to make this work. In case anybody is curios here is the code.

    html_entity_decode(get_comment_author(), ENT_COMPAT, 'UTF-8');

Topic Closed

This topic has been closed to new replies.

About this Topic