Ejemplo n.º 1
0
 /**
  * Block hooks
  */
 protected function before_parsing()
 {
     $this->string = htmlspecialchars($this->string);
     parent::before_parsing();
 }
Ejemplo n.º 2
0
 protected function after_parsing()
 {
     parent::after_parsing();
 }
Ejemplo n.º 3
0
 public function get_section($header, $text, $clean = false)
 {
     // The requested header is likely to have been passed to htmlspecialchars in
     // self::before_parsing(), therefore we should decode it when looking for it.
     return parent::get_section(htmlspecialchars_decode($header), $text, $clean);
 }