🐛 Bug Fix
- Security:
isHtmlFromWordandisHTML, which run on every paste, used regexes that backtracked quadratically on crafted clipboard HTML (a long run of<metaor<a), so a 256 KB paste froze the tab for half a minute (CWE-1333, ReDoS). Both are singleindexOfscans now, as are the other tag searches on the paste and value paths: the<meta>and Word wrapper clean-up, the selection marker, temporary element, media and iframe wrapper removal, the iframe document marker clean-up,trimand themso-style filter. Reported by Jiawei Guo.