Simpletalk icon indicating copy to clipboard operation
Simpletalk copied to clipboard

Field can't handle <script> tags

Open dkrasner opened this issue 1 year ago • 0 comments

main issue

The DOM parser is very greedy with the tag and will grab even if it is inside a string (quotes), such as the value of an innerHTML property. This causes our de-serialization to fail, and is annoying in case you are using the field to write vanilla js/html.

We should probably have a special code editor part which subclasses field, or rework field, or remove DOM parsing from the serialization all together and only save the serialization/JSON itself. (Or all of these)

dkrasner avatar Apr 03 '23 20:04 dkrasner