Answer the question
In order to leave comments, you need to log in
How to compare two html files for changes and display this in the client side?
There are two div blocks that contain content generated using the tinymce visual editor. The editor has the ability to change the text style, upload images.
Task: compare these two div blocks for a difference: what was added and what was removed, like on github.
I tried using prettyTextDiff in js, but it doesn't have html tags, so when you change from Blue dog to Blue dog, it will display nothing. Tell me how to make a comparison and display it beautifully, taking into account changes in the color of the text, etc.?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question