Support » How-To and Troubleshooting » Convert HTML entities

Convert HTML entities

  • Hi!

    Is there a way to convert HTML entities in posts automatically with a filter? I collaborate in a blog with multiple authors and one of them uses Dreamweaver to write his posts and then he pastes them (ridden with HTML entities) in the WP editor. Does WP have a filter for dealing with this situation?

    Thanks in advance

Viewing 7 replies - 1 through 7 (of 7 total)
  • Use the ‘HTML’ tab on the editor?

    Why would anyone want to use DreamWeaver to write WordPress posts? Is he just trying to justify spending all that money?




    Oh! Or am I misunderstanding you? Do you not want the characters represented by the entities to show up? For example, do you want an em-dash to show up as a hyphen instead of an em-dash, or a non-breaking space to show up as an ordinary space?



    I tried to disuade him from using DW to write his posts with no success. His posts show up correctly in the blog, but they are almost unreadable in the post editor because of the amount of HTML entities in them. I wanted to know if there was a way to convert these entities to UTF-8 characters because our database already supports this character encoding.


    I think if he pastes into the ‘HTML’ part of TinyMCE, you’ll find that the entities are converted when moving back to ‘Visual’. That’s what happens for me, anyway.

    I need to enter HTML entities for Welsh character codes like: ŵ

    So I type them (or paste them) into the HTML side of TinyMCE and they are always converted when I move back.



    Heh! The conversion just got done, didn’t it. That entity was:

    & # 3 7 3 ;

    (remove the spaces)


    Thanks peredur!

    De nada.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Convert HTML entities’ is closed to new replies.
Skip to toolbar