We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
use TYPO3\HtmlSanitizer\Behavior; use TYPO3\HtmlSanitizer\Builder\Preset\IframePreset; $behavior = (new Behavior()) ->withFlags(Behavior::ENCODE_INVALID_TAG | Behavior::REMOVE_UNEXPECTED_CHILDREN) ->withName('scenario-test') ->withPreset(new IframePreset());
The text was updated successfully, but these errors were encountered:
[FEATURE] Add possibility to declare and apply presets to behavior
99ad451
Example (uses preset declaring `<iframe>` and applies it): ```php use TYPO3\HtmlSanitizer\Behavior; use TYPO3\HtmlSanitizer\Builder\Preset\IframePreset; $behavior = (new Behavior()) ->withFlags(Behavior::ENCODE_INVALID_TAG | Behavior::REMOVE_UNEXPECTED_CHILDREN) ->withName('scenario-test') ->withPreset(new IframePreset()); ``` Related: TYPO3#91
cf32a62
No branches or pull requests
The text was updated successfully, but these errors were encountered: