anchorme.js icon indicating copy to clipboard operation
anchorme.js copied to clipboard

HTML breaks url in certain cases

Open Zeouterlimits opened this issue 4 years ago • 1 comments

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.

Zeouterlimits avatar May 21 '20 01:05 Zeouterlimits

Facing the same issue in 2.1.2 when using <br /> tags

nithinssabu avatar Jul 20 '21 12:07 nithinssabu