jumpinjackie / vscode-map-preview

VSCode map preview extension
MIT License
85 stars 14 forks source link

Refine CDATA cleaning regex #14

Closed jumpinjackie closed 1 year ago

jumpinjackie commented 8 years ago

The current CDATA cleaning regex just completely scrubs out such instances. This is a bit overkill, when what we really want is simply to scrub out any script tags inside such instances (which might be present in some KML documents).

jumpinjackie commented 8 years ago

As an alternative, consider using something like DOMPurify (https://github.com/cure53/DOMPurify) to achieve this task.