add failing tests for entity preservation
fix entity preservation
Merge branch 'entity-preservation' of https://github.com/1st8/truncate
Escape html before replacing.