includes/functions.php
changeset 277 35f9d6c93eec
parent 264 e17cc42d77cf
child 285 e72bf2c24875
equal deleted inserted replaced
274:f725a16e4a20 277: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) ) ? '' : ' ';