Utility to Automatically Link URLs, Email Addresses, Phone Numbers, Twitter handles, and Hashtags in a given block of text/HTML
1.48k
stars
238
forks
source link
long data URI of font face in style tag cause browser freezing #252
Closed
examan closed 5 years ago
If style element contains long data URI, Autolinker will freeze at matcherRegex.exec.
@font-face { font-family: 'Work Sans'; src: local('Work Sans'), local('WorkSans-Regular'), url(data:font/woff;base64,............................................................); }
Style element should be skipped parsing to prevent this issue.