wp_strip_all_tags


wp_strip_all_tags ( $text, $remove_breaks = false )

Parameters:
  • (string) text 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 strips 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_stream_image

Top Google Results

User discussions

wpseek mobile