Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#20400 closed defect (bug) (fixed)

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

Reported by: markjaquith's profile markjaquith Owned by: markjaquith's profile 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)

#1 @markjaquith
13 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.