Skip to content

[13.x] Introduce validateHtml()#60025

Closed
weshooper wants to merge 9 commits into
laravel:13.xfrom
weshooper:validate-html
Closed

[13.x] Introduce validateHtml()#60025
weshooper wants to merge 9 commits into
laravel: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
@taylorotwell
Copy link
Copy Markdown
Member

Thanks for your pull request to Laravel!

Unfortunately, I'm going to delay merging this code for now. To preserve our ability to adequately maintain the framework, we need to be very careful regarding the amount of code we include.

If applicable, please consider releasing your code as a package so that the community can still take advantage of your contributions!

@weshooper weshooper deleted the validate-html branch May 8, 2026 15:07
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