Make WordPress Core


Ignore:
Timestamp:
02/24/2012 01:58:18 AM (13 years ago)
Author:
azaozz
Message:

HTML in image captions, first run, see #18311

File:
1 edited

Legend:

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

    r19933 r19982  
    11891189 * Acts on text which is about to be edited.
    11901190 *
    1191  * Unless $richedit is set, it is simply a holder for the 'format_to_edit'
    1192  * filter. If $richedit is set true htmlspecialchars(), through esc_textarea(),
    1193  * will be run on the content, converting special characters to HTML entities.
     1191 * The $content is run through esc_textarea(), which uses htmlspecialchars()
     1192 * to convert special characters to HTML entities. If $richedit is set to true,
     1193 * it is simply a holder for the 'format_to_edit' filter.
    11941194 *
    11951195 * @since 0.71
    11961196 *
    11971197 * @param string $content The text about to be edited.
    1198  * @param bool $richedit Whether the $content should pass through htmlspecialchars(). Default false.
     1198 * @param bool $richedit Whether the $content should not pass through htmlspecialchars(). Default false (meaning it will be passed).
    11991199 * @return string The text after the filter (and possibly htmlspecialchars()) has been run.
    12001200 */
Note: See TracChangeset for help on using the changeset viewer.