Skip to content

Strip tags + other drafts. - #1258

Merged
thet merged 2 commits into
masterfrom
strip-tags
Nov 26, 2026
Merged

thet merged 2 commits into
masterfrom
strip-tags

Conversation

@thet

@thet thet commented Sep 3, 2025

Copy link
Copy Markdown
Member

No description provided.

@thet
thet marked this pull request as draft September 3, 2025 15:46
@thet
thet force-pushed the strip-tags branch 4 times, most recently from c197005 to ff541e8 Compare September 9, 2025 21:29
thet added 2 commits November 26, 2026 00:02
"scripts: remove" (default) removes scripts from the injected content.
"scripts: execute" injects and executes them. The option is applied per
injection rule. Script URLs are resolved against the requested page.
External scripts run in document order unless they are async. SVG
scripts keep their namespace.

Also:
- Parse responses with DOMParser in an inert document instead of with
  regular expressions. Images in the response are no longer loaded and
  their event handlers no longer run while parsing, including for
  content that is not injected.
- Remove scripts from nested template contents.
- Remove scripts at injection time, which also applies to content from
  other type handlers like pat-markdown.

Assisted-by: Claude Opus 5.5 <noreply@anthropic.com>
@thet
thet marked this pull request as ready for review November 26, 2026 00:34
@thet
thet merged commit 06a3a00 into master Nov 26, 2026
1 check passed
@thet
thet deleted the strip-tags branch November 26, 2026 00:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant