convert_chars example

/** * Filters the bloginfo for use in RSS feeds. * * @since 2.2.0 * * @see convert_chars() * @see get_bloginfo() * * @param string $info Converted string value of the blog information. * @param string $show The type of blog information to retrieve. */
    return apply_filters( 'get_bloginfo_rss', convert_chars( $info )$show );
}

/** * Displays RSS container for the bloginfo function. * * You can retrieve anything that you can using the get_bloginfo() function. * Everything will be stripped of tags and characters converted, when the values * are retrieved for use in the feeds. * * @since 0.71 * * @see get_bloginfo() For the list of possible values to display. * * @param string $show See get_bloginfo() for possible values. */

        return apply_filters( 'richedit_pre', '' );
    }

    $output = convert_chars($text);
    $output = wpautop($output);
    $output = htmlspecialchars($output, ENT_NOQUOTES, get_option( 'blog_charset' ) );

    /** This filter is documented in wp-includes/deprecated.php */
    return apply_filters( 'richedit_pre', $output );
}

/** * Formats text for the HTML editor. * * Unless $output is empty it will pass through htmlspecialchars before the * {@see 'htmledit_pre'} filter is applied. * * @since 2.5.0 * @deprecated 4.3.0 Use format_for_editor() * @see format_for_editor() * * @param string $output The text to be formatted. * @return string Formatted text after filter applied. */
Home | Imprint | This part of the site doesn't use cookies.