diff --git a/syntax/tag.php b/syntax/tag.php index c9af244..384e00c 100644 --- a/syntax/tag.php +++ b/syntax/tag.php @@ -60,7 +60,7 @@ function connectTo($mode) function handle($match, $state, $pos, Doku_Handler $handler) { $tags = trim(substr($match, 6, -2)); // strip markup & whitespace - $tags = trim($tags, "\xe2\x80\x8b"); // strip word/wordpad breaklines + $tags = str_replace("\xe2\x80\x8b", '', $tags); // strip word/wordpad breaklines(U+200b) $tags = preg_replace(['/[[:blank:]]+/', '/\s+/'], " ", $tags); // replace linebreaks and multiple spaces with one space character $tags = preg_replace('/[\x00-\x1F\x7F]/u', '', $tags); // strip unprintable ascii code out of utf-8 coded string