示例#1
0
 /**
  * Block hooks
  */
 protected function before_parsing()
 {
     $this->string = htmlspecialchars($this->string);
     parent::before_parsing();
 }
示例#2
0
 protected function after_parsing()
 {
     parent::after_parsing();
 }
示例#3
0
文件: creole.php 项目: evltuma/moodle
 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);
 }