wp_strip_all_tags


wp_strip_all_tags ( $string, $remove_breaks = false )

Parameters:
  • (string) string String containing HTML tags
  • (bool) remove_breaks Optional. Whether to remove left over line breaks and white space chars
Returns:
  • (string) The processed string.
Defined at:

Description

Properly strip all HTML tags including script and styleThis differs from strip_tags() because it removes the contents of the `' )` will return 'something'. wp_strip_all_tags will return ''

Related Functions

wp_script_add_data, wp_set_post_tags, wp_scripts, wp_get_script_tag, wp_set_all_user_settings

Top Google Results

User discussions

wpseek mobile