From c4e119d53073c070c9fb4b8ba5183032ebed9840 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Mon, 27 Jan 2014 03:16:11 +0000 Subject: [PATCH] Basic unit tests and additional documentation for wp_strip_all_tags(). props joehoyle. fixes #25507. Built from https://develop.svn.wordpress.org/trunk@27042 git-svn-id: http://core.svn.wordpress.org/trunk@26916 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/formatting.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index ed87b2b8ad..71f1794c52 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -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 ' ) + * will return 'something'. wp_strip_all_tags will return '' * * @since 2.9.0 *