wp_richedit_pre [ WordPress Function ]
wp_richedit_pre ( $text )
| Parameters: |
|
| Returns: |
|
| Defined at: |
|
Formats text for the rich text editor.
The filter 'richedit_pre' is applied here. If $text is empty the filter will be applied to an empty string.
Source
<?php
function wp_richedit_pre($text) {
// Filtering a blank results in an annoying <br />\n
if ( empty($text) ) return apply_filters('richedit_pre', '');
$output = convert_chars($text);
$output = wpautop($output);
$output = htmlspecialchars($output, ENT_NOQUOTES);
return apply_filters('richedit_pre', $output);
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- Function Reference/wp richedit pre « WordPress Codex
Description. Formats text for the rich text editor. The filter 'richedit_pre' is applied here. If $text is empty the filter will be applied to an empty string.
codex.wordpress.org - Problem with WordPress output text ('esc_html' & 'wp_richedit_pre')
Oct 18, 2011 ... I have a problem with output text. When I editing text in the WordPress control panel everything looks normal: http://i.stack.imgur.com/GaIut.png ...
wordpress.stackexchange.com - How to Use Multiple WordPress WYSIWYG Visual Editors
php echo wp_richedit_pre($mb->get_the_value()); ?></textarea></div> <?php $ mb->the_field('extra_content2'); ?> <div class="customEditor"><textarea ...
www.farinspace.com - wp_richedit_pre (WordPress Function) - WPSeek.com
WordPress lookup for wp_richedit_pre, a WordPress Function. wpseek.com is a WordPress-centric search tool for developers and theme authors.
wpseek.com