htmlpurifier
htmlpurifier copied to clipboard
Style attribute 'page-break-after' is not supported
Getting this message when trying to use page-break css atributes.
Style attribute 'page-break-after' is not supported (for information on implementing this, see the support forums)
Using this package which seems to be a wrapper around htmlpurifier.
using
'HTML.Allowed' => 'div[style] ....',
'CSS.AllowedProperties' => 'page-break-after,page-break-before,....',
Still same. Did anyone find any solution? @SergioReis97 ?
Needs to be implemented. Will be something in CSSDefinition.php
This seems to be already resolved https://github.com/ezyang/htmlpurifier/blob/1354e7e8c558dc9ae353e07b8cde7ab0d46e7a25/library/HTMLPurifier/CSSDefinition.php#L407
CSS.Proprietary
needs to be set to true
for this property to be allowed.
break-after got added to CSS3 so a PR that makes page-break-after an alias to break-faster (transforming from the former to the latter) would be accepted (then CSS.Proprietary wouldn't be needed).