- 10526D3D84BBE766511AF25287F01BBE1125A06D18BABB93E1B7C33488C1F1DF15EA3E706848A67D36C30EDAC25D3A4DD360BC563AC21093F6BFE0183F9C4388
+ 96C9B9B0B8DA6F255E10FD47FD4053958417127524A5B8BE961E126CCE7FDE0476BD5C2B20C4580517A75B01E9751636C8DC0C6F250AB8F94DBBE8097057CF67
mp-wp/wp-includes/formatting.php
(775 . 20)(775 . 16)
9816 /**^M
9817 * Acts on text which is about to be edited.^M
9818 *^M
9819 * Unless $richedit is set, it is simply a holder for the 'format_to_edit'^M
9820 * filter. If $richedit is set true htmlspecialchars() will be run on the^M
9821 * content, converting special characters to HTMl entities.^M
9822 * Holder for the 'format_to_edit'^M
9823 * filter.^M
9824 *^M
9825 * @since 0.71^M
9826 *^M
9827 * @param string $content The text about to be edited.^M
9828 * @param bool $richedit Whether or not the $content should pass through htmlspecialchars(). Default false.^M
9829 * @return string The text after the filter (and possibly htmlspecialchars()) has been run.^M
9830 */^M
9831 function format_to_edit($content, $richedit = false) {^M
9832 function format_to_edit($content) {^M
9833 $content = apply_filters('format_to_edit', $content);^M
9834 if (! $richedit )^M
9835 $content = htmlspecialchars($content);^M
9836 return $content;^M
9837 }^M
9838 ^M
(1616 . 28)(1612 . 6)
9840 }^M
9841 ^M
9842 /**^M
9843 * Formats text for the rich text editor.^M
9844 *^M
9845 * The filter 'richedit_pre' is applied here. If $text is empty the filter will^M
9846 * be applied to an empty string.^M
9847 *^M
9848 * @since 2.0.0^M
9849 *^M
9850 * @param string $text The text to be formatted.^M
9851 * @return string The formatted text after filter is applied.^M
9852 */^M
9853 function wp_richedit_pre($text) {^M
9854 // Filtering a blank results in an annoying <br />\n^M
9855 if ( empty($text) ) return apply_filters('richedit_pre', '');^M
9856 ^M
9857 $output = convert_chars($text);^M
9858 $output = wpautop($output);^M
9859 $output = htmlspecialchars($output, ENT_NOQUOTES);^M
9860 ^M
9861 return apply_filters('richedit_pre', $output);^M
9862 }^M
9863 ^M
9864 /**^M
9865 * Formats text for the HTML editor.^M
9866 *^M
9867 * Unless $output is empty it will pass through htmlspecialchars before the^M