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

Angle brackets not parsed correctly #322

Open ryanmcclure4 opened 4 years ago

ryanmcclure4 commented 4 years ago

When autolinking strings with angle brackets not belonging to html tags, the bracketed section is stripped out. For example, when passing in http://gs.3g.cn/D/b3964/w the output is http://gs.3g.cn/D/b39664/w.

Is there any way to prevent this so that the bracketed region is included in the link?