Пример #1
0
 /**
  * This override replace '_' by '/' for em and '+' by '_' for ins
  * Default is html5
  *
  * @param string $doctype The output document type, either 'xhtml' or 'html5'
  */
 public function __construct($doctype = 'html5')
 {
     parent::__construct($doctype);
     $this->span_tags = ['*' => 'strong', '**' => 'b', '??' => 'cite', '/' => 'em', '//' => 'i', '-' => 'del', '%' => 'span', '_' => 'ins', '~' => 'sub', '^' => 'sup'];
 }