[wp-trac] [WordPress Trac] #40635: Move JavaScript `sanitizeText` and `stripTags` functions from press-this to core

WordPress Trac noreply at wordpress.org
Sat Jul 15 15:47:18 UTC 2017


#40635: Move JavaScript `sanitizeText` and `stripTags` functions from press-this to
core
----------------------------------------+------------------------------
 Reporter:  adamsilverstein             |       Owner:  adamsilverstein
     Type:  enhancement                 |      Status:  closed
 Priority:  normal                      |   Milestone:  Awaiting Review
Component:  General                     |     Version:
 Severity:  normal                      |  Resolution:  fixed
 Keywords:  has-patch needs-unit-tests  |     Focuses:  javascript
----------------------------------------+------------------------------
Changes (by adamsilverstein):

 * owner:   => adamsilverstein
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"41061"]:
 {{{
 #!CommitTicketReference repository="" revision="41061"
 Move `sanitizeText` and `stripTags` from press this to `wp.sanitize`.

 Introduce the `wp.sanitize` namespace and add two helpers for text
 sanitization. `stripTags` strips HTML tags from a string using regex.

 Fixes #40635.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40635#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list