Advertisements

wp_htmledit_pre

Definition:
function wp_htmledit_pre($output) {}

Formats text for the HTML editor.
Unless $output is empty it will pass through htmlspecialchars before the ‘htmledit_pre’ filter is applied.

Parameters

  • string $output: The text to be formatted.

Return values

returns:Formatted text after filter applied.

Defined filters

  • htmledit_pre
    apply_filters('htmledit_pre', $output)

Source code

function wp_htmledit_pre($output) {

	if ( !empty($output) )

		$output = htmlspecialchars($output, ENT_NOQUOTES); // convert only < > &



	return apply_filters('htmledit_pre', $output);

}

3765

Advertisements

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: