ezyang / ezyang/htmlpurifier

Ability to purify entire HTML documents

Open
#7 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Looks like setting false to this doesn't working properly, or this parameter description is wrong

I need to purify html page while leaving its structure - html title head - unaltered, but setting option to false removes this tags too, the only difference with true value is that page title added as plain text to output, but html head and body tags are removed

htmlpurifier v.4.4.0

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

No source file, test, or exact option name is identified in the issue. Start by reproducing the reported behavior with HTMLPurifier 4.4.0, then locate the option described as false and trace document handling for the html, head, and body elements. Done means preserving the document structure while retaining the expected sanitization behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
security
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.