Challenge Description: The task is to compare two HTML input strings with various styling elements like strong, li, ol, line-through, etc. The goal is to display the original text and the edited text in two separate boxes on the screen. Any words missing in the edited text compared to the original text should be highlighted in red, while any additional words in the edited text should be highlighted in yellow.
https://i.sstatic.net/SKBT0.jpg
Expected Outcome: The first box should highlight deleted text in red, and the second box should highlight edited text in yellow.
https://i.sstatic.net/F86EH.jpg
Approached Solutions: 1. Experimented with the Diff Match Patch library, but encountered issues due to the presence of HTML tags in the input strings. Stripping the tags would result in loss of styling. 2. Attempted to use the HtmlDiff library, but it provided deleted and modified words in a single string, making it challenging to customize. Any guidance or assistance on this matter would be greatly appreciated. Thank you.