- Affected version
- 2.2.6 Patch 2
<ul>
<li data-xf-list-type="ul"><a href="http://example.com" target="_blank" class="link link--external" rel="noopener">example</a> example<ul>
<li data-xf-list-type="ul"></li>
</ul></li>
</ul>
<ul>
<li data-xf-list-type="ul"><a href="http://example.com" target="_blank">example</a> example<ul>
<li data-xf-list-type="ul"></li>
</ul></li>
</ul><p></p>
EditorHtml
is a super-hacky work-around. protected function renderFinalListOutput($listType, array $elements)
{
$output = parent::renderFinalListOutput($listType, $elements);
$output = \preg_replace_callback('/<\/a>(\s+)/i', function ($match) {
return '</a>' . \str_repeat(' ', \utf8_strlen($match[1] ?? ''));
}, $output);
return $output;
}
We use essential cookies to make this site work, and optional cookies to enhance your experience.