[wp-trac] [WordPress Trac] #32257: Patch: add support for multi-line textarea sanitization
WordPress Trac
noreply at wordpress.org
Wed Oct 26 05:16:12 UTC 2016
#32257: Patch: add support for multi-line textarea sanitization
--------------------------------------+------------------------
Reporter: ottok | Owner: chriscct7
Type: enhancement | Status: closed
Priority: normal | Milestone: 4.7
Component: Formatting | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+------------------------
Changes (by pento):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"38944"]:
{{{
#!CommitTicketReference repository="" revision="38944"
General: Add a `sanitize_textarea_field()` function.
Like its predecessor (`sanitize_text_field()`),
`sanitize_textarea_field()` is a helper function to sanitise user input.
As the name suggests, this function is for sanitising input from
`textarea` fields - it strips tags and invalid UTF-8 characters, like
`sanitize_text_field()`, but retains newlines and extra inline whitespace.
Props ottok, nbachiyski, chriscct7, pento.
Fixes #32257.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32257#comment:25>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list