mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 12:50:28 +00:00
Basic unit tests and additional documentation for wp_strip_all_tags().
props joehoyle. fixes #25507. git-svn-id: https://develop.svn.wordpress.org/trunk@27042 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -3568,6 +3568,10 @@ function normalize_whitespace( $str ) {
|
||||
|
||||
/**
|
||||
* Properly strip all HTML tags including script and style
|
||||
*
|
||||
* This differs from strip_tags() because it removes the contents of
|
||||
* the <script> and <style> tags. E.g. strip_tags( '<script>something</script>' )
|
||||
* will return 'something'. wp_strip_all_tags will return ''
|
||||
*
|
||||
* @since 2.9.0
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user