function __construct() { TexyHtml::initDTD($GLOBALS['Texy::$strictDTD']); foreach ($GLOBALS['TexyHtml::$dtd'] as $tag => $dtd) { $this->allowedTags[$tag] = TEXY_ALL; } $this->loadModules(); $this->cleaner =& $this->htmlOutputModule; $this->xhtml =& $this->htmlOutputModule->xhtml; $link = new TexyLink('http://texy.info/'); $link->modifier->title = 'The best text -> HTML converter and formatter'; $link->label = 'Texy!'; $this->linkModule->addReference('texy', $link); $link = new TexyLink('http://www.google.com/search?q=%s'); $this->linkModule->addReference('google', $link); $link = new TexyLink('http://en.wikipedia.org/wiki/Special:Search?search=%s'); $this->linkModule->addReference('wikipedia', $link); }