Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




wp_htmledit_pre [ WordPress Function ]

wp_htmledit_pre ( $output )
Parameters:
  • (string) $output The text to be formatted.
Returns:
  • (string) Formatted text after filter applied.
Defined at:



Formats text for the HTML editor.

Unless $output is empty it will pass through htmlspecialchars before the 'htmledit_pre' filter is applied.

Source


<?php
function wp_htmledit_pre($output) {
    if ( !empty(
$output) )
        
$output htmlspecialchars($outputENT_NOQUOTES); // convert only < > &

    
return apply_filters('htmledit_pre'$output);
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics