anchorme.js
anchorme.js copied to clipboard
HTML breaks url in certain cases
Using 2.1.2.
When I anchorme-ify some html like:
<div class="trix-content">
<div>http://a.z</div>
</div>
I get broken output due to the escaped less than:
<div class="trix-content">
<div><a target="_blank" rel="noopener noreferrer" href="http://a.z</div">http://a.z</div</a>>
</div>
While still correctly handling some:
Input
<div class="trix-content">
<div>http://google.ie</div>
</div>
Output
<div class="trix-content">
<div><a target="_blank" rel="noopener noreferrer" href="http://google.ie">http://google.ie</a></div>
</div>
Based on the recent bug fixed, I'm not sure if this is intended or not.
Facing the same issue in 2.1.2 when using <br /> tags