/** * Block hooks */ protected function before_parsing() { $this->string = htmlspecialchars($this->string); parent::before_parsing(); }
protected function after_parsing() { parent::after_parsing(); }
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); }