Diaspora: Remove asterisk-meddling regular expression
$html = Text\Markdown::convert($markdown);
$results[] = [
'title' => L10n::t('Markdown::convert (raw HTML)'),
- 'content' => htmlspecialchars($html)
+ 'content' => visible_whitespace(htmlspecialchars($html))
];
$results[] = [
{
$s = html_entity_decode($s, ENT_COMPAT, 'UTF-8');
- // Replace lonely stars in lines not starting with it with literal stars
- $s = preg_replace('/^([^\*]+)\*([^\*]*)$/im', '$1\*$2', $s);
-
// The parser cannot handle paragraphs correctly
$s = str_replace(['</p>', '<p>', '<p dir="ltr">'], ['<br>', '<br>', '<br>'], $s);