Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TASK] Streamline \TYPO3\HtmlSanitizer\Sanitizer #97

Merged
merged 4 commits into from
Nov 24, 2022

Conversation

ohader
Copy link
Member

@ohader ohader commented Nov 24, 2022

  • Adjust PHPdoc comment
  • Declare all default options for Masterminds parser
  • Organize node handling in dedicated method
  • Deprecate superfluous property Sanitizer::$root

Currently `sanitize` combines all steps:

* `parse` to create DOM node structures
* `handle` to apply corresponding sanitizer behavior
* `serialize` to convert DOM nodes back to HTML as string

The goal is, that all these methods could be public in future versions.
@ohader ohader merged commit 1b5eed3 into TYPO3:main Nov 24, 2022
@ohader ohader deleted the task/refactoring branch November 24, 2022 14:40
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