wpseek.com
A WordPress-centric search engine for devs and theme authors
wp_strip_all_tags › WordPress Function
Since2.9.0
Deprecatedn/a
› wp_strip_all_tags ( $text, $remove_breaks = false )
Parameters: (2) |
|
Returns: |
|
Defined at: |
|
Codex: |
Properly strips 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 ''Related Functions: wp_script_add_data, wp_set_post_tags, wp_scripts, wp_get_script_tag, wp_stream_image