gregjacobs / Autolinker.js

Utility to Automatically Link URLs, Email Addresses, Phone Numbers, Twitter handles, and Hashtags in a given block of text/HTML
MIT License
1.48k stars 238 forks source link

Breaks when anchor tag contains other html tag #48

Closed subintp closed 10 years ago

subintp commented 10 years ago
 <div>First name: Subin</div> <div>Surname: Sundar</div> <div>Email: <a 

href=\"mailto:subin.sundar@yo.in\"><font color=\"blue\"><u>s</u></font><font 

color=\"blue\"><u>ubin</u></font><font color=\"blue\"><u>.sundar@yo.in</u></font>

</a>\n</div>

Autolinker.link() removes email if from above html snippet

gregjacobs commented 10 years ago

Hey, so sorry for the super late reply... Are you still having an issue with this though? I can't reproduce with 0.11.2.

gregjacobs commented 10 years ago

Going to close for now. Feel free to reopen if you're still having an issue.