Item12407:  Alternate fix

This avoids a dependency on HTML::TreeBuilder > 4.0
Thanks to BjoernKautler and JanKrueger

git-svn-id: http://svn.foswiki.org/trunk@17632 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
Item12407: Call no_expand_entities if possible

The real fix for Compare entity encoding issues is to use a modern
version of HTML::TreeBuilder and set the no_expand_entites flag.
Otherwise, when the topic is imported, all entities are decoded,
"activating" encoded tags.

git-svn-id: http://svn.foswiki.org/trunk@17633 0b4bb1d4-4e5a-0410-9cc4-b2b747904278