-
Notifications
You must be signed in to change notification settings - Fork 52
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
Is it possible to skip certain HTML tags? #27
Comments
Hi Emiel, there is currently no way to skip them. I will be working on updates for table diffing over the next week, so I will be sure to make some time to include a feature that allows you to skip/ignore certain tags. A workaround for now might be to preprocess the text before sending it into HtmlDiff to remove those tags. |
OK, thanks for the reply Josh! |
@emielvangoor Just an update - have not gotten to this yet but it's on my radar. I will aim to get this feature included in the next release - probably 1-2 weeks. |
@jschroed91 Thanks for the update..! For now I created a simple preprocessor to remove the tags as you suggested. Would be great if you implement this feature in the library.. 👍 |
This has been de-prioritized, and currently not sure if I have plans to implement this in the near future, since the focus of this library is on HTML snippets. However, I'm not against handling this so that it's compatible with full html documents |
When I diff a new text with
<!DOCTYPE html ...>
,body
orhead
tag and the old text doesn't include these theHtmlDiff
will add aclass="diffmod"
to the tag, is there anyway to avoid/skip these kind of tags?The text was updated successfully, but these errors were encountered: