WordPress.org

Make WordPress Core

Opened 2 years ago

Closed 2 years ago

#20400 closed defect (bug) (fixed)

clean_pre() fails unit tests for stripping '<br/>' and '<br />'

Reported by: markjaquith Owned by: markjaquith
Milestone: 3.4 Priority: low
Severity: minor Version:
Component: Formatting Keywords:
Focuses: Cc:

Description

clean_pre() only strips <br /> and fails to strip HTML4/5 style <br> and self-closing-but-without-a-space style <br/>.

Two unit tests fail because of this.

Change History (1)

comment:1 markjaquith2 years ago

  • Owner set to markjaquith
  • Resolution set to fixed
  • Status changed from new to closed

In [20409]:

Replace <br/> and <br> in addition to <br /> in clean_pre(). fixes #20400

Note: See TracTickets for help on using tickets.