includes/functions.php
changeset 450 35f9d6c93eec
parent 325 e17cc42d77cf
child 458 c433348f3628
equal deleted inserted replaced
448:f725a16e4a20 450:35f9d6c93eec
  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) ) ? '' : ' ';