parseSanitizedElement
Parse an HTML string into elements with sanitization, used by setStatus to restore panels from a serialized
htmlstring. The string is parsed inside a<template>(an inert document, so no script runs and no resource loads), event-handler attributes and script-capable elements are stripped, and the result is imported — neutralizing a mutation-XSS payload revived by theouterHTML→innerHTMLround-trip.
Signature
parseSanitizedElement: (html: string) => HTMLElement[]