Closed jumpinjackie closed 1 year 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).
As an alternative, consider using something like DOMPurify (https://github.com/cure53/DOMPurify) to achieve this task.
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).