]> git.proxmox.com Git - proxmox-widget-toolkit.git/commit
parser: use safer mechanism for allowing URLs
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 3 Oct 2023 06:37:34 +0000 (08:37 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 3 Oct 2023 06:37:36 +0000 (08:37 +0200)
commite21d3a40ad32769a837db54df4a440f567523367
tree61ca482d73b68cc61aa7f065538d203f2f33f314
parentade0e572d29c0d306e53e064b4b1cd0158ee3f3c
parser: use safer mechanism for allowing URLs

Having a default-remove boolean flag is making it easier to get this
right and decouple the if-branches that check if something is OK
(which may get more complex in the future) from the actual handling of
the result by always removing the href attribute if not explicitly
told otherwise.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/Parser.js