WordPress.org

Make WordPress Core

Opened 3 years ago

#17780 new enhancement

Use PHP native double encoding prevention in htmlspecialchars()

Reported by: nbachiyski Owned by:
Milestone: Future Release Priority: low
Severity: minor Version:
Component: General Keywords: needs-patch
Focuses: Cc:

Description

Since PHP 5.2.3 the htmlspecialchars() function has an optional $double_encode parameter, which we could use. This can save us a few expensive kses/html decoding calls.

We need to make sure it works the same way as our implementation.

Change History (0)

Note: See TracTickets for help on using tickets.