Example #1
0
function cleanup_annotation($html)
{
    $html = str_replace("\n", "", $html);
    $html = preg_replace('"<(br|dd|p)[\\s/]*>"', "\n", $html);
    $html = strip_unwanted_tags($html, ['font', 'dd']);
    $html = trim($html);
    $html = str_replace("\n", "<br/>", $html);
    return $html;
}
Example #2
0
 function fixHTML($html)
 {
     $html = str_replace('</small><p><font', '</dl></j><j><dl><p><font', $html);
     $html = strip_unwanted_tags($html, ['div']);
     return $html;
 }