Anki/ts/lib/domlib
Damien Elmes 82f3778340 Sanitize field content in editor
The editor already strips script tags from fields, but was allowing
through Javascript in things like onclick handlers. We block this now,
as the editor context has access to internal APIs that we don't want to
expose to untrusted third-party code.

(cherry picked from commit 1c156905f8)
2025-04-17 11:16:57 +10:00
..
location Reduce use of type casting (#3723) 2025-01-12 20:05:05 +11:00
surround Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
content-editable.ts Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
find-above.ts Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
index.ts Sanitize field content in editor 2025-04-17 11:16:57 +10:00
move-nodes.ts Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
place-caret.ts Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
sanitize.ts Sanitize field content in editor 2025-04-17 11:16:57 +10:00