Skip to content

i18n: Escape decoded HTML attributes - #862

Open
MaggieCabrera wants to merge 2 commits into
trunkfrom
codex/i18n-escape-decoded-attributes
Open

i18n: Escape decoded HTML attributes#862
MaggieCabrera wants to merge 2 commits into
trunkfrom
codex/i18n-escape-decoded-attributes

Conversation

@MaggieCabrera

Copy link
Copy Markdown
Contributor

Summary

Escape HTML attribute values after token processing during localized export.

This preserves encoded quotes and backslashes after the HTML processor decodes attribute values.

Test plan

  • vendor/bin/phpunit -c phpunit.xml.dist --verbose --group locale
  • vendor/bin/phpunit -c phpunit.xml.dist --verbose --filter 'CBT_Theme_Locale_EscapeTextContent|test_token_processor'
  • vendor/bin/phpcs --standard=phpcs.xml.dist includes/create-theme/theme-locale.php includes/create-theme/theme-token-processor.php tests/CbtThemeLocale/escapeTextContent.php
  • Confirmed encoded attribute values remain inert and generated pattern PHP stays parse-clean.

@MaggieCabrera MaggieCabrera self-assigned this Aug 20, 2026
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