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 ”
参数
$string
(string)
(Required)
String containing HTML tags
$remove_breaks
(bool)
(Optional)
Whether to remove left over line breaks and white space chars