Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: htmledit_pre

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
1134      $output = htmlspecialchars($output, ENT_NOQUOTES);
1135
1136      return apply_filters('richedit_pre', $output);
1137 }
1138
1139 function wp_htmledit_pre($output) {
1140      if ( !empty($output) )
1141           $output = htmlspecialchars($output, ENT_NOQUOTES); // convert only < > &
1142
1143      return apply_filters('htmledit_pre', $output);
1144 }
1145
1146 function clean_url( $url, $protocols = null, $context = 'display' ) {
1147      $original_url = $url;
1148
1149      if ('' == $url) return $url;
1150      $url = preg_replace('|[^a-z0-9-~+_.?#=!&;,/:%@()]|i', '', $url);
1151      $strip = array('%0d', '%0a');
1152      $url = str_replace($strip, '', $url);