public function __construct() { // load all modules $this->loadModules(); // DEPRECATED if (self::$strictDTD !== NULL) { $this->setOutputMode(self::$strictDTD ? self::XHTML1_STRICT : self::XHTML1_TRANSITIONAL); } else { $this->setOutputMode(self::XHTML1_TRANSITIONAL); } // DEPRECATED $this->cleaner =& $this->htmlOutputModule; // examples of link references ;-) $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); }
public function __construct() { // load all modules $this->loadModules(); $this->setOutputMode(self::HTML4_TRANSITIONAL); // examples of link references ;-) $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); }