textile-js icon indicating copy to clipboard operation
textile-js copied to clipboard

Fix error in lang attribute parsing

Open borgar opened this issue 4 years ago • 0 comments

The textile %["red":https://example.com].% is incorrectly parsed.

The resulting HTML is:

<span lang="&quot;red&quot;:https://example.com">.</span><

But should be:

<span><a href="https://example.com">red</a>.</span>

Likely it is best to restrict what input is allowed in a lang attribute.

borgar avatar Apr 21 '21 17:04 borgar