Skip to content

[13.x] Introduce validateHtml()#60025

Open
weshooper wants to merge 9 commits intolaravel:13.xfrom
weshooper:validate-html
Open

[13.x] Introduce validateHtml()#60025
weshooper wants to merge 9 commits intolaravel:13.xfrom
weshooper:validate-html

Conversation

@weshooper
Copy link
Copy Markdown
Contributor

@weshooper weshooper commented May 7, 2026

Pros:

  • Feels a fairly common thing others may want to do (it's not far off a port from our own codebase, i.e. sharing a problem we've solved)
  • It mirrors, and is based off, validateJson() thanks to new HTMLDocument in PHP 8.4

Cons:

  • Requires PHP 8.4 and Laravel 13 supports PHP 8.3 (perhaps not an issue, i.e. could note in docs, and you know, just don't use it? but no idea about failing tests etc.)
  • I've never touched validation code before, probably be sensible for someone who can validate(!) security implications (hence Draft status)

Pros:

- Feels a fairly common thing others may want to do (it's not far off a port from our own codebase, i.e. sharing a problem we've solved)
- It mirrors, and is based off, `validateJson()` thanks to new `HTMLDocument` in PHP 8.4

Cons:

- Requires PHP 8.4 and Laravel 13 supports PHP 8.3 (perhaps not an issue, i.e. could note in docs, and you know, just don't use it?)
- I've never touched validation code before, probably be sensible for someone who can validate(!) security implications (hence Draft status)
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 7, 2026

Thanks for submitting a PR!

Note that draft PRs are not reviewed. If you would like a review, please mark your pull request as ready for review in the GitHub user interface.

Pull requests that are abandoned in draft may be closed due to inactivity.

@weshooper weshooper marked this pull request as ready for review May 7, 2026 19:45
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