fix blockquotes

This commit is contained in:
quenousimporte 2024-09-04 18:20:01 +02:00
parent f5cc7bdb86
commit 0f2449c3ca
1 changed files with 5 additions and 0 deletions

View File

@ -17,8 +17,13 @@
$innerHTM = '';
foreach ($node->childNodes as $childNode){
$nodeHTML = $childNode->ownerDocument->saveHTML($childNode);
$nodeHTML = str_replace('<aside', '<b><i', $nodeHTML);
$nodeHTML = str_replace('</aside', '</i></b', $nodeHTML);
$nodeHTML = str_replace('<blockquote', '<b><i', $nodeHTML);
$nodeHTML = str_replace('</blockquote', '</i></b', $nodeHTML);
$innerHTML .= $nodeHTML;
}
return '<div>' . strip_tags($innerHTML, '<p><b><h2><i><strong>') . '</div>';