[ ] Traverse the parsed AST and find/replace in the body only and exactly a nodes with mailtos in the href attribute and CDATA and PCDATA with plaintext emails in them.
[ ] Serialize and output the HTML.
Huge pro: PHPEnkoder works cleaner and is almost surely more correct.
Significant con: PHPEnkoder will interact even less well with other plugins.
Significant con: PHPEnkoder will be much slower.
Current count of bug reports around this issue: 4.
PHPEnkoder presently works by running regular expressions over the entirety of
the_content
. Apparently doing so can lead to wrong encodings.It should be possible to work in a more principled way:
body
only and exactlya
nodes with mailtos in thehref
attribute andCDATA
andPCDATA
with plaintext emails in them.Huge pro: PHPEnkoder works cleaner and is almost surely more correct. Significant con: PHPEnkoder will interact even less well with other plugins. Significant con: PHPEnkoder will be much slower.
Current count of bug reports around this issue: 4.