Detect if 2 HTML fragments have identical hierarchical structure
- by sergzach
An example of fragments that have identical hierarchical structure:
(1)
<div>
<span>It's a message</span>
</div>
(2)
<div>
<span class='bold'>This is a new text</span>
</div>
An example of fragments that have different structure:
(1)
<div>
<span><b>It's a…