ezyang / ezyang/htmlpurifier

Remove excessive BR tags

Open
#66 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

An option that allow you specify the consecutive BR tags limit (default: null). When set to a number, it'll check if you have more than the specified option number, and will limit BR tags.

  • option = null: <br /><br /><br /><br /><br />Text<br /><br />
  • option = 1: <br />Text<br />
  • option = 2: <br /><br />Text<br /><br />
  • option = 3: <br /><br /><br />Text<br /><br />

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 locating the code that processes consecutive BR tags and the related configuration options. Use the examples in this issue as behavioral cases, and consider the work done when null preserves the input while numeric limits produce the shown output.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend, security
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 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.