angry smile cool EOT; $markup[] = <<angry EOT; class TestMarkupSmiley { /** * utility class * @var JSTestUtil */ protected $util; /** * Scanner * @var WBMarkup_Scanner */ protected $scan; /** * Handler * @var WBMarkup_Handler_Xml2Html */ protected $hdl; public function __construct() { $this->ute = new JSTestUtil(); $this->scan = WBClass::create( 'WBMarkup_Scanner' ); $this->hdl = WBClass::create( 'WBMarkup_Handler_Xml2Html' ); $this->scan->setHandler($this->hdl); } public function displayAll($markup) { $this->ute->mkHeader(true); foreach ($markup as $ml) { echo "
"; echo "

Convert ".strlen($ml)." bytes

\n"; echo "
"; echo htmlspecialchars( $ml ); echo "
"; echo "scan " . $this->scan->scan($ml) . "
"; echo "
"; echo WBString::replaceSuperPlaceholders($this->hdl->getParsedContent()); } $this->ute->mkFooter(true); } } $test = new TestMarkupSmiley(); $test->displayAll($markup); ?>