includes/functions.php
changeset 451 2c6ef58e315a
parent 450 35f9d6c93eec
child 458 c433348f3628
equal deleted inserted replaced
449:b8fd21190ae1 451:2c6ef58e315a
  1789       $attribs_only = trim( substr($full_tag, $l, ( strlen($full_tag) - $l - 1 ) ) );
  1789       $attribs_only = trim( substr($full_tag, $l, ( strlen($full_tag) - $l - 1 ) ) );
  1790 
  1790 
  1791       // Debugging message
  1791       // Debugging message
  1792       // echo htmlspecialchars($full_tag) . '<br />';
  1792       // echo htmlspecialchars($full_tag) . '<br />';
  1793 
  1793 
  1794       if ( !in_array($tag_name, $tag_whitelist) )
  1794       if ( !in_array($tag_name, $tag_whitelist) && substr($tag_name, 0, 3) != '!--' )
  1795       {
  1795       {
  1796         // Illegal tag
  1796         // Illegal tag
  1797         //echo $tag_name . ' ';
  1797         //echo $tag_name . ' ';
  1798 
  1798 
  1799         $s = ( empty($attribs_only) ) ? '' : ' ';
  1799         $s = ( empty($attribs_only) ) ? '' : ' ';