includes/functions.php
changeset 381 b4751b55ee92
parent 378 c1c7fa6b329f
child 382 2ccb55995aef
equal deleted inserted replaced
380:73444271fd1c 381:b4751b55ee92
  1829       $attribs_only = trim( substr($full_tag, $l, ( strlen($full_tag) - $l - 1 ) ) );
  1829       $attribs_only = trim( substr($full_tag, $l, ( strlen($full_tag) - $l - 1 ) ) );
  1830 
  1830 
  1831       // Debugging message
  1831       // Debugging message
  1832       // echo htmlspecialchars($full_tag) . '<br />';
  1832       // echo htmlspecialchars($full_tag) . '<br />';
  1833 
  1833 
  1834       if ( !in_array($tag_name, $tag_whitelist) )
  1834       if ( !in_array($tag_name, $tag_whitelist) && substr($tag_name, 0, 3) != '!--' )
  1835       {
  1835       {
  1836         // Illegal tag
  1836         // Illegal tag
  1837         //echo $tag_name . ' ';
  1837         //echo $tag_name . ' ';
  1838 
  1838 
  1839         $s = ( empty($attribs_only) ) ? '' : ' ';
  1839         $s = ( empty($attribs_only) ) ? '' : ' ';