Use image alignment from <figure> or <img>

[MAILPOET-1684]
This commit is contained in:
Jan Jakeš
2019-01-07 18:07:23 +01:00
parent 4d97a2f6a7
commit 88f14575dc
2 changed files with 17 additions and 4 deletions

View File

@ -49,7 +49,7 @@ class PostContentManager {
'<a>', '<ul>', '<ol>', '<li>', '<br>', '<blockquote>'
);
if($display_type === 'full') {
$tags_not_being_stripped = array_merge($tags_not_being_stripped, array('<img>', '<h1>', '<h2>', '<h3>'));
$tags_not_being_stripped = array_merge($tags_not_being_stripped, array('<figure>', '<img>', '<h1>', '<h2>', '<h3>'));
}
$content = strip_tags($content, implode('', $tags_not_being_stripped));