By default DiffRowGenerator.generateDiffRows delivers a List of DiffRow where the oldLine and the newLine property are polluted with HTML tags like
and HTML-escaping sequences like >.
It should be possible to get the unmodified text lines back for use in projects where HTML enrichment/escaping is not necessary or useful.
My proposal is to introduce a new property reportLinesUnWrapped which can be set by the DiffRowGenerator.Builder. If this property is set to true the DiffRowGenerator delivers back the original text lines.
Please see the attached source.
DiffRowGenerator.zip