You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let originalHTML = `This text is <b>bold</b>.`;
let newHTML = `This text is <i>bold</i>.`;
// Diff HTML strings
let output = htmldiff(originalHTML, newHTML);
Result:
This text is <b><i>bold</i></b>.
The text was updated successfully, but these errors were encountered:
I was about to post the same issue. Actually, you can change both the tag name itself or the attributes and no changes will be detected. This should be a high-priority fix, imho.
For example changing
<b>
to<i>
doesn't result in addition of<ins>/<del>
tags.Made an example:
https://codepen.io/anon/pen/EMrRJG
Result:
The text was updated successfully, but these errors were encountered: