wysiwyg-editor
wysiwyg-editor copied to clipboard
Typo in style tag crashes the browser with an infinite loop
Expected behavior.
Froala leaves <style> tags alone.
Actual behavior.
a typo in a <style> tag will crash the browser.
Steps to reproduce the problem.
Initialize the editor with a typo in a style tag, for example:
<style>
/* note the missing closing bracket */
.tag {
</style>
hello
See this codesandbox for a reproduction: https://codesandbox.io/s/froala-core-sandbox-forked-bxqtk3?file=/src/index.js
Editor version.
latest (v.4.0.14)
OS.
macOS 12.2.1
Browser.
reproduced on Chrome, Firefox
Screenshot.