Missing single <p> for valid html

This commit is contained in:
danpros 2024-02-25 12:13:38 +07:00
commit 034c541550

View file

@ -3638,7 +3638,7 @@ function automatic_toc($content, $id)
if (is_null($pos) || $pos > count($exp)){
return $content;
}
array_splice($exp, $pos, 0, insert_toc($id));
array_splice($exp, $pos, 0, insert_toc($id) . '<p>');
$content = implode('</p>', $exp);
return $content;
}