Decode HTML special chars in summary
This commit is contained in:
parent
08db923066
commit
7ea1782edf
@ -43,7 +43,11 @@ function post_to_object( $post ) {
|
||||
$permalink = get_permalink( $post );
|
||||
$summary = null;
|
||||
if ( $post->post_content ) {
|
||||
$summary = get_the_excerpt( $post );
|
||||
$summary = \html_entity_decode(
|
||||
get_the_excerpt( $post ),
|
||||
ENT_QUOTES,
|
||||
'UTF-8'
|
||||
);
|
||||
}
|
||||
$matches = array();
|
||||
if ( preg_match( '/(.+)__trashed\/$/', $permalink, $matches ) ) {
|
||||
|
Loading…
Reference in New Issue
Block a user