Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vickyRathee opened this issue Feb 17, 2021 · 2 comments
Open

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

vickyRathee opened this issue Feb 17, 2021 · 2 comments

Comments

@vickyRathee
Copy link

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>
@Keanottesen
Copy link

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.

@vickyRathee
Copy link
Author

@Keanottesen No, we have this project on hold.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants