| @@ -9,14 +9,14 @@ | ||
| 9 | 9 | |
| 10 | 10 | /** |
| 11 | 11 | * Strips all HTML tags including script and style. |
| 12 | 12 | * |
| 13 | - * @param string $string The string to strip the tags from. | |
| 13 | + * @param string $text The text to strip the tags from. | |
| 14 | 14 | * |
| 15 | 15 | * @return string The processed string. |
| 16 | 16 | */ |
| 17 | - public function strip_all_tags( $string ) { | |
| 18 | - return \wp_strip_all_tags( $string ); | |
| 17 | + public function strip_all_tags( $text ) { | |
| 18 | + return \wp_strip_all_tags( $text ); | |
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | /** |
| 22 | 22 | * Standardize whitespace in a string. |
| @@ -22,14 +22,14 @@ | ||
| 22 | 22 | * Standardize whitespace in a string. |
| 23 | 23 | * |
| 24 | 24 | * Replace line breaks, carriage returns, tabs with a space, then remove double spaces. |
| 25 | 25 | * |
| 26 | - * @param string $string String input to standardize. | |
| 26 | + * @param string $text Text input to standardize. | |
| 27 | 27 | * |
| 28 | 28 | * @return string |
| 29 | 29 | */ |
| 30 | - public function standardize_whitespace( $string ) { | |
| 31 | - return \trim( \str_replace( ' ', ' ', \str_replace( [ "\t", "\n", "\r", "\f" ], ' ', $string ) ) ); | |
| 30 | + public function standardize_whitespace( $text ) { | |
| 31 | + return \trim( \str_replace( ' ', ' ', \str_replace( [ "\t", "\n", "\r", "\f" ], ' ', $text ) ) ); | |
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | 35 | * First strip out registered and enclosing shortcodes using native WordPress strip_shortcodes function. |