html-differ
html-differ copied to clipboard
Options to add <ins> or <del> tag with custom class in result?
Anyway to print the result with <ins> and <del> tag?
var first = "<p>This is a paragraph</p>"
var second= "<p>This is a changed paragraph</p>"
var diff = htmlDiffer.diffHtml(first , second);
// Should result in
<p>This is a <ins>changed</ins> paragraph</p>
Have you implemented this yourself? I am struggling with it as it fails to give me satisfying results when deleted elements spans over multiple HTML elements.
@Keanottesen No, we have this project on hold.