'','L_COLON'=>'','L_IMAGE'=>'','L_SELECT_ALL_CODE'=>'','L_WROTE'=>'','S_VIEWFLASH'=>'','S_VIEWIMG'=>'','S_VIEWSMILIES'=>'','T_SMILIES_PATH'=>'']; protected function renderNode(\DOMNode $node) { switch($node->nodeName){case'ATTACHMENT':$this->out.='
';break;case'B':$this->out.='';$this->at($node);$this->out.='';break;case'CODE':$this->out.=''.htmlspecialchars($this->params['L_CODE'].$this->params['L_COLON'],0).' '.htmlspecialchars($this->params['L_SELECT_ALL_CODE'],0).'
';$this->at($node);$this->out.='
hasAttribute('author'))$this->out.=' class="uncited"';$this->out.='>';break;case'SIZE':$this->out.='';$this->at($node);$this->out.='';break;case'U':$this->out.='';$this->at($node);$this->out.='';break;case'URL':$this->out.='';$this->at($node);$this->out.='';break;case'br':$this->out.='';if($node->hasAttribute('author')){$this->out.='';if($node->hasAttribute('url'))$this->out.=''.htmlspecialchars($node->getAttribute('author'),0).'';elseif($node->hasAttribute('profile_url'))$this->out.=''.htmlspecialchars($node->getAttribute('author'),0).'';else$this->out.=htmlspecialchars($node->getAttribute('author'),0);$this->out.=' '.htmlspecialchars($this->params['L_WROTE'].$this->params['L_COLON'],0);if($node->hasAttribute('post_url'))$this->out.=' ↑';if($node->hasAttribute('date'))$this->out.=''.htmlspecialchars($node->getAttribute('date'),0).'';$this->out.='';}$this->at($node);$this->out.='
';$this->at($node);$this->out.='
';break;default:$this->at($node);} } /** {@inheritdoc} */ public $enableQuickRenderer=true; /** {@inheritdoc} */ protected $static=['/B'=>'','/CODE'=>'','/COLOR'=>'','/EMAIL'=>'','/I'=>'','/LI'=>'','/QUOTE'=>'','/SIZE'=>'','/U'=>'','/URL'=>'','B'=>'','I'=>'','LI'=>''.htmlspecialchars($this->params['L_CODE'].$this->params['L_COLON'],0).' '.htmlspecialchars($this->params['L_SELECT_ALL_CODE'],0).'
';break;case'E':$textContent=$this->getQuickTextContent($xml);if(empty($this->params['S_VIEWSMILIES']))$html.=htmlspecialchars($textContent,0);else{switch($textContent){case'8-)':$html.='
';break;case':!:':$html.='
';break;case':(':$html.='
';break;case':)':$html.='
';break;case':-(':$html.='
';break;case':-)':$html.='
';break;case':-?':$html.='
';break;case':-D':$html.='
';break;case':-P':$html.='
';break;case':-o':$html.='
';break;case':-x':$html.='
';break;case':-|':$html.='
';break;case':?':$html.='
';break;case':?:':$html.='
';break;case':???:':$html.='
';break;case':D':$html.='
';break;case':P':$html.='
';break;case':arrow:':$html.='
';break;case':cool:':$html.='
';break;case':cry:':$html.='
';break;case':eek:':$html.='
';break;case':evil:':$html.='
';break;case':geek:':$html.='
';break;case':grin:':$html.='
';break;case':idea:':$html.='
';break;case':lol:':$html.='
';break;case':mad:':$html.='
';break;case':mrgreen:':$html.='
';break;case':o':$html.='
';break;case':oops:':$html.='
';break;case':razz:':$html.='
';break;case':roll:':$html.='
';break;case':sad:':$html.='
';break;case':shock:':$html.='
';break;case':smile:':$html.='
';break;case':twisted:':$html.='
';break;case':ugeek:':$html.='
';break;case':wink:':$html.='
';break;case':x':$html.='
';break;case':|':$html.='
';break;case';)':$html.='
';break;case';-)':$html.='
';break;default:$html.=htmlspecialchars($textContent,0);}}break;case'EMOJI':$attributes+=['seq'=>null];$textContent=$this->getQuickTextContent($xml);if(!empty($this->params['S_VIEWSMILIES']))$html.='
';else$html.=htmlspecialchars($textContent,0);break;case'LINK_TEXT':$attributes+=['text'=>null];$html.=str_replace('"','"',$attributes['text']);break;case'LIST':$attributes+=['type'=>null];if(!isset($attributes['type']))$html.='';elseif((strpos('upperlowerdecim',mb_substr(htmlspecialchars_decode($attributes['type']),0,5,'utf-8'))!==false))$html.='';else$html.='';$this->attributes[]=$attributes;break;case'QUOTE':$attributes+=['url'=>null,'author'=>null,'post_id'=>null];$html.='';if(isset($attributes['author'])){$html.='';if(isset($attributes['url']))$html.=''.str_replace('"','"',$attributes['author']).'';elseif(isset($attributes['profile_url']))$html.=''.str_replace('"','"',$attributes['author']).'';else$html.=str_replace('"','"',$attributes['author']);$html.=' '.htmlspecialchars($this->params['L_WROTE'].$this->params['L_COLON'],0);if(isset($attributes['post_url']))$html.=' ↑';if(isset($attributes['date']))$html.=''.str_replace('"','"',$attributes['date']).'';$html.='';}}
return $html;
}
}