Probably solution for #462 ?

This commit is contained in:
the-djmaze 2022-07-19 20:55:54 +02:00
parent efc3327cec
commit f7555abed7

View file

@ -31,7 +31,7 @@ abstract class HtmlUtils
$sHtml = \str_replace('<o:p></o:p>', '', $sHtml); $sHtml = \str_replace('<o:p></o:p>', '', $sHtml);
$sHtml = \str_replace('<o:p>', '<span>', $sHtml); $sHtml = \str_replace('<o:p>', '<span>', $sHtml);
$sHtml = \str_replace('</o:p>', '</span>', $sHtml); $sHtml = \str_replace('</o:p>', '</span>', $sHtml);
/*
if (\function_exists('tidy_repair_string')) { if (\function_exists('tidy_repair_string')) {
# http://tidy.sourceforge.net/docs/quickref.html # http://tidy.sourceforge.net/docs/quickref.html
$tidyConfig = array( $tidyConfig = array(
@ -44,7 +44,7 @@ abstract class HtmlUtils
); );
$sHtml = \tidy_repair_string($sHtml, $tidyConfig, 'utf8'); $sHtml = \tidy_repair_string($sHtml, $tidyConfig, 'utf8');
} }
*/
$sHtml = \preg_replace(array( $sHtml = \preg_replace(array(
'/<p[^>]*><\/p>/i', '/<p[^>]*><\/p>/i',
'/<!doctype[^>]*>/i', '/<!doctype[^>]*>/i',