removing images and headings from the excerpt
This commit is contained in:
@@ -45,8 +45,8 @@ class PostContentManager {
|
||||
|
||||
// strip useless tags
|
||||
$tags_not_being_stripped = array(
|
||||
'<img>', '<p>', '<em>', '<span>', '<b>', '<strong>', '<i>', '<h1>',
|
||||
'<h2>', '<h3>', '<a>', '<ul>', '<ol>', '<li>', '<br>', '<blockquote>'
|
||||
'<p>', '<em>', '<span>', '<b>', '<strong>', '<i>',
|
||||
'<a>', '<ul>', '<ol>', '<li>', '<br>', '<blockquote>'
|
||||
);
|
||||
$content = strip_tags($content, implode('', $tags_not_being_stripped));
|
||||
if($with_post_class) {
|
||||
|
Reference in New Issue
Block a user