html-differ icon indicating copy to clipboard operation
html-differ copied to clipboard

Options to add <ins> or <del> tag with custom class in result?

Open vickyRathee opened this issue 4 years ago • 2 comments

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>

vickyRathee avatar Feb 17 '21 08:02 vickyRathee

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 avatar Sep 22 '21 07:09 Keanottesen

@Keanottesen No, we have this project on hold.

vickyRathee avatar Sep 23 '21 03:09 vickyRathee