Make WordPress Core

Changeset 58814


Ignore:
Timestamp:
07/27/2024 07:50:32 AM (2 months ago)
Author:
SergeyBiryukov
Message:

Docs: Clarify the description for wp_strip_all_tags().

Follow-up to [11929], [27042].

Props coffee2code, krupalpanchal, mukesh27.
Fixes #61759.

File:
1 edited

Legend:

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

    r58601 r58814  
    55005500
    55015501/**
    5502  * Properly strips all HTML tags including script and style
     5502 * Properly strips all HTML tags including 'script' and 'style'.
    55035503 *
    55045504 * This differs from strip_tags() because it removes the contents of
    55055505 * the `<script>` and `<style>` tags. E.g. `strip_tags( '<script>something</script>' )`
    5506  * will return 'something'. wp_strip_all_tags will return ''
     5506 * will return 'something'. wp_strip_all_tags() will return an empty string.
    55075507 *
    55085508 * @since 2.9.0
Note: See TracChangeset for help on using the changeset viewer.