Skip to content

Use CakePHP native trusted HTML values - #47

Merged
josbeir merged 2 commits into
mainfrom
use-cakephp-html-string
Nov 8, 2026
Merged

josbeir merged 2 commits into
mainfrom
use-cakephp-html-string

Conversation

@josbeir

@josbeir josbeir commented Nov 8, 2026 •

Copy link
Copy Markdown
Owner

Form labels, help, choices, summaries, embeds, and action captions now accept CakePHP's HtmlStringable contract. Templates use HtmlString::render() to escape ordinary strings and preserve explicitly trusted content; examples and tests use the html() factory to create trusted markup.

Updates the locked CakePHP 6.x build to include cakephp/cakephp#19731 and removes FormCompose\Rendering\Html. Documentation describes the native API. Regression tests exercise application-defined HtmlStringable content through public form APIs and verify attributes and input values remain escaped.

Validation:

  • composer validate --strict
  • composer check: 820 tests, 3,303 assertions; analysis, lint, Rector, and format checks pass
  • composer test-coverage with Xdebug: 100% source line coverage (2,517/2,517); greater-than-90% gate passes
  • npm ci and npm run docs:build (rerun after documentation cleanup)
  • git diff --check

@codecov-commenter

codecov-commenter commented Nov 8, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (c23f6d2) to head (1529d5a).

Additional details and impacted files
@@             Coverage Diff             @@
##                main       #47   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
+ Complexity      1090      1087    -3     
===========================================
  Files            120       119    -1     
  Lines           2942      2942           
===========================================
  Hits            2942      2942           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@josbeir
josbeir merged commit e2fa6e9 into main Nov 8, 2026
6 checks passed
@josbeir
josbeir deleted the use-cakephp-html-string branch November 8, 2026 14:47
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.

2 participants