Skip to content
Permalink
Browse files

[rich_editor] fix problem of <h> tag anchor string

  • Loading branch information
nao-pon committed Mar 3, 2014
1 parent 0a91255 commit f20ad4b88f90a0e6ef898b7e120315a38774fe57
Showing with 1 addition and 1 deletion.
  1. +1 −1 xoops_trust_path/modules/xpwiki/ways/w2x_php5.php
@@ -828,7 +828,7 @@ function HeadingEx(& $root, $text)
if (preg_match('/\s*\[#([_0-9a-zA-Z]+)\]/', $text, $matches)) {
$this->id = $matches[1];
}
$text = preg_replace('/\s*\[#_0-9a-zA-Z+\]/', '', $text);
$text = preg_replace('/\s*\[#[_0-9a-zA-Z]+\]/', '', $text);

$this->insert(Factory_InlineEx($text));
$this->level++; // h2,h3,h4

0 comments on commit f20ad4b

Please sign in to comment.
You can’t perform that action at this time.