[wp-trac] [WordPress Trac] #40635: Move JavaScript `sanitizeText` and `stripTags` functions from press-this to core
WordPress Trac
noreply at wordpress.org
Wed Oct 4 18:57:49 UTC 2017
#40635: Move JavaScript `sanitizeText` and `stripTags` functions from press-this to
core
-------------------------------------------------+-------------------------
Reporter: adamsilverstein | Owner:
Type: enhancement | adamsilverstein
Priority: normal | Status: closed
Component: Security | Milestone: 4.9
Severity: normal | Version:
Keywords: has-patch needs-unit-tests 2nd- | Resolution: fixed
opinion | Focuses: javascript
-------------------------------------------------+-------------------------
Changes (by adamsilverstein):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"41745"]:
{{{
#!CommitTicketReference repository="" revision="41745"
Security: Rename new `wp.sanitize.sanitizeText` to
`stripTagsAndEncodeText`.'
Improve function naming: this function strips tags from a string and also
encodes any HTML entities.
Props ocean90.
Fixes #40635.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40635#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list