예제 #1
0
 protected function FormatControlSymbol(RtfControlSymbol $symbol)
 {
     if ($symbol->getSymbol() === '\'') {
         $this->BeginState();
         switch ($this->root->getCharset()) {
             default:
             case "ansi":
             case "pc":
             case "pca":
                 $encoding = 'windows-1252';
                 break;
             case "mac":
                 $encoding = 'macroman';
                 break;
         }
         $this->output .= htmlentities(chr($symbol->getValue()), ENT_QUOTES, $encoding);
         $this->EndState();
     } else {
         $this->BeginState();
         $this->output .= $symbol->__toHtml();
         $this->EndState();
     }
 }
예제 #2
0
 public function test_ign__toHtml()
 {
     $this->_object->setSymbol('*');
     $this->assertSame('', $this->_object->__toHtml());
 }