Skip to content

Handle attributes on closing script/style tags#5

Merged
nickotmazgin merged 1 commit intomainfrom
widen-script-close-match
Nov 5, 2025
Merged

Handle attributes on closing script/style tags#5
nickotmazgin merged 1 commit intomainfrom
widen-script-close-match

Conversation

@nickotmazgin
Copy link
Copy Markdown
Owner

@nickotmazgin nickotmazgin commented Nov 5, 2025

Summary

  • expand the script/style sanitization regex to allow optional trailing attributes on closing tags

Testing

  • none (regex-only change)

Note

Expand the HTML sanitization regex to match closing </style> and </script> tags with optional trailing attributes.

  • Sanitization (extension.js):
    • Update _stripClipboardHtml to use regexes that match closing </style> and </script> tags with optional trailing attributes.

Written by Cursor Bugbot for commit ca10f61. This will update automatically on new commits. Configure here.

@nickotmazgin nickotmazgin merged commit e612fde into main Nov 5, 2025
2 checks passed
@nickotmazgin nickotmazgin deleted the widen-script-close-match branch November 5, 2025 16:08
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