Add pre_ent2ncr filter. props GaryJ, fixes #16432.

git-svn-id: https://develop.svn.wordpress.org/trunk@18456 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2011-07-21 21:41:21 +00:00
parent f4ca2f5b82
commit ac3ab55d1e
1 changed files with 4 additions and 0 deletions

View File

@ -1875,6 +1875,10 @@ function wp_trim_excerpt($text) {
* @return string Text with converted entities.
*/
function ent2ncr($text) {
if( null !== $filtered = apply_filters( 'pre_ent2ncr', null, $text ) )
return $filtered;
$to_ncr = array(
'"' => '"',
'&' => '&',