Skip to content

Commit

Permalink
Remove wrapping tags around system-readmore tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Chrissi2812 committed Oct 14, 2020
1 parent 09b46f7 commit 80fb61a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/src/Table/Content.php
Expand Up @@ -137,7 +137,7 @@ public function bind($array, $ignore = '')
// Search for the {readmore} tag and split the text up accordingly.
if (isset($array['articletext']))
{
$pattern = '#<hr\s+id=("|\')system-readmore("|\')\s*\/*>#i';
$pattern = '#(?:<(?<tag>[\w-]+)>\s*)?<hr\s+id=["\']system-readmore["\']\s*\/*>(?:\s*<\/(?P=tag)>)?#i';
$tagPos = preg_match($pattern, $array['articletext']);

if ($tagPos == 0)
Expand Down

0 comments on commit 80fb61a

Please sign in to comment.