ezyang / ezyang/htmlpurifier

Style attribute 'page-break-after' is not supported

Open
#164 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
3.4k
Forks
361
Avg merge
3d 41m
Merged PRs (30d)
2

Description

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,....',

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how CSS.AllowedProperties handles page-break-after and related page-break properties, then consult the support forums referenced in the message for the intended behavior. Done means the configured style is accepted without the unsupported-property warning and is preserved appropriately in sanitized output; no specific source file or test is named.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.