mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-05 05:04:31 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@41745 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
*
|
||||
* @return Sanitized text. False on failure.
|
||||
*/
|
||||
sanitizeText: function( text ) {
|
||||
stripTagsAndEncodeText: function( text ) {
|
||||
var _text = wp.sanitize.stripTags( text ),
|
||||
textarea = document.createElement( 'textarea' );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user