4 responses to “Converting HTML entities to characters”

  1. ccompass

    Thank you very much! Just a solution I had been looking for!

  2. Torbjörn

    Hi and thanks for the tip. Found it while searching for a solution to my problem. Implemented your code and that fixed the problem.
    Tip: Add some tags so more people can find you post like ‘wp_mail’, ‘garbled text’, ‘unicode’

  3. Randy

    This is especially helpful if you are doing WPDB queries. For some reason, even though the output was correct, the query would result in nothing unless the ‘get_the_title()’ was properly decoded before passing through the query.

    Great tip!

Leave a Reply