UNPKG

node-htmldiff

Version:

Diff and markup HTML with <ins> and <del> tags

28 lines (21 loc) 1.21 kB
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head> <meta charset="utf-8" /> </head> <body> <p><del data-myPrefix-operation-index="1" class="myDiffClass">This</del><ins data-myPrefix-operation-index="1" class="myDiffClass">That</ins> is some<ins data-myPrefix-operation-index="3" class="myDiffClass"> more</ins> text.</p> <figure> <del data-myPrefix-operation-index="5" class="myDiffClass"><img src="before.png" alt="This is an image" /></del><ins data-myPrefix-operation-index="5" class="myDiffClass"><img src="after.png" alt="This is another image" /></ins> <figcaption>This is <del data-myPrefix-operation-index="7" class="myDiffClass">an</del><ins data-myPrefix-operation-index="7" class="myDiffClass">another</ins> image</figcaption> </figure> An anchor to <del data-myPrefix-operation-index="9" class="myDiffClass"><a href="http://www.idesis.com">idesis GmbH</a></del><ins data-myPrefix-operation-index="9" class="myDiffClass"><a href="https://www.idesis.com">idesis GmbH</a></ins> with a changed <code>href</code> attribute. </body> </html>