$str = '[PHP] HTML Beautifier

Example

Hello World!

  1. line 1
  2. line 2
  3. line 3
'; include 'ganon.php'; $html = str_get_dom($str); //** Beautify HTML *// dom_format($html, array('attributes_case' => CASE_LOWER)); echo $html; // Hasil