fix blockquotes
This commit is contained in:
parent
f5cc7bdb86
commit
0f2449c3ca
5
epub.php
5
epub.php
|
@ -17,8 +17,13 @@
|
||||||
$innerHTM = '';
|
$innerHTM = '';
|
||||||
foreach ($node->childNodes as $childNode){
|
foreach ($node->childNodes as $childNode){
|
||||||
$nodeHTML = $childNode->ownerDocument->saveHTML($childNode);
|
$nodeHTML = $childNode->ownerDocument->saveHTML($childNode);
|
||||||
|
|
||||||
$nodeHTML = str_replace('<aside', '<b><i', $nodeHTML);
|
$nodeHTML = str_replace('<aside', '<b><i', $nodeHTML);
|
||||||
$nodeHTML = str_replace('</aside', '</i></b', $nodeHTML);
|
$nodeHTML = str_replace('</aside', '</i></b', $nodeHTML);
|
||||||
|
|
||||||
|
$nodeHTML = str_replace('<blockquote', '<b><i', $nodeHTML);
|
||||||
|
$nodeHTML = str_replace('</blockquote', '</i></b', $nodeHTML);
|
||||||
|
|
||||||
$innerHTML .= $nodeHTML;
|
$innerHTML .= $nodeHTML;
|
||||||
}
|
}
|
||||||
return '<div>' . strip_tags($innerHTML, '<p><b><h2><i><strong>') . '</div>';
|
return '<div>' . strip_tags($innerHTML, '<p><b><h2><i><strong>') . '</div>';
|
||||||
|
|
Loading…
Reference in New Issue