Closed philfreo closed 9 years ago
If there's a newline (\n) in the style tag then bad stuff happens:
\n
Autolinker.link('<a href="http://close.io/" style="font-family: Helvetica,\nArial">http://close.io</a>')
Yields:
<a href="<a href="http://close.io/" target="_blank">close.io</a>" style="font-family: Helvetica, Arial"><a href="http://close.io" target="_blank">close.io</a></a>
If you remove the \n then you simply get the expected result of:
<a href="http://close.io/" style="font-family: Helvetica, Arial">http://close.io</a>
Hey, good catch, will take a look.
Nice, easy fix in 9cce7f50458102d6d7bbbeca8f2d73c68d337e53/v0.15.1
Thanks! :+1:
If there's a newline (
\n
) in the style tag then bad stuff happens:Yields:
If you remove the
\n
then you simply get the expected result of: