diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index 82a1b9bdf7..311cd5f5eb 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -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( '"' => '"', '&' => '&',