Source for file Html.class.php
Documentation is available at Html.class.php
* Gumbo Library Framework
* This library is being released under the terms of the New BSD License. A
* copy of the license is packaged with the software (LICENSE.txt). If no
* copy is found, a copy of the license template can be found at:
* http://www.opensource.org/licenses/bsd-license.php
* @copyright Copyright (c) 2007, iBayou, Michael Luster
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
* @author Michael Luster <mluster79@yahoo.com>
* @link http://sourceforge.net/projects/phpgumbo
* HTML Encode/Decode Converter Class
* @copyright Copyright (c) 2007, iBayou, Michael Luster
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
* @author Michael Luster <mluster79@yahoo.com>
* @link http://sourceforge.net/projects/phpgumbo
* @desc HTML Encode/Decode Converter Class
gumbo_load ("Converter_Abstract");
/** @var int $_quote_style ENT_COMPAT, ENT_QUOTES, ENT_NOQUOTES */
/** @var string $_charset character set */
* @param int $quote_style
public function __construct ($quote_style=
null, $charset=
null) {
* Encodes the HTML string
* @throws Gumbo_Exception
$e->setFunction (__METHOD__
);
* Decodes the HTML string
* @throws Gumbo_Exception
$e->setFunction (__METHOD__
);
* @param int $style ENT_QUOTES, ENT_COMPAT, ENT_NOQUOTES
* @throws Gumbo_Exception
case ENT_NOQUOTES :
break;
default : throw
new Gumbo_Exception ("Invalid Argument ENT_* Value: {$style}");
$e->setFunction (__METHOD__
);
* @throws Gumbo_Exception
$e->setFunction (__METHOD__
);
* Returns the Quote Style
* Returns the Character Set