Make WordPress Core

Changeset 27042


Ignore:
Timestamp:
01/27/2014 03:15:29 AM (11 years ago)
Author:
nacin
Message:

Basic unit tests and additional documentation for wp_strip_all_tags().

props joehoyle.
fixes #25507.

Location:
trunk
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/formatting.php

    r26974 r27042  
    35693569/**
    35703570 * Properly strip all HTML tags including script and style
     3571 *
     3572 * This differs from strip_tags() because it removes the contents of
     3573 * the <script> and <style> tags. E.g. strip_tags( '<script>something</script>' )
     3574 * will return 'something'. wp_strip_all_tags will return ''
    35713575 *
    35723576 * @since 2.9.0
Note: See TracChangeset for help on using the changeset viewer.