Issue 11625: Don't parse the title through Markdown
This commit is contained in:
parent
3394b65c60
commit
d7d8a6ab55
1 changed files with 3 additions and 1 deletions
|
@ -608,7 +608,7 @@ class Processor
|
||||||
private static function processContent($activity, $item)
|
private static function processContent($activity, $item)
|
||||||
{
|
{
|
||||||
if (!empty($activity['mediatype']) && ($activity['mediatype'] == 'text/markdown')) {
|
if (!empty($activity['mediatype']) && ($activity['mediatype'] == 'text/markdown')) {
|
||||||
$item['title'] = Markdown::toBBCode($activity['name']);
|
$item['title'] = strip_tags($activity['name']);
|
||||||
$content = Markdown::toBBCode($activity['content']);
|
$content = Markdown::toBBCode($activity['content']);
|
||||||
} elseif (!empty($activity['mediatype']) && ($activity['mediatype'] == 'text/bbcode')) {
|
} elseif (!empty($activity['mediatype']) && ($activity['mediatype'] == 'text/bbcode')) {
|
||||||
$item['title'] = $activity['name'];
|
$item['title'] = $activity['name'];
|
||||||
|
@ -619,6 +619,8 @@ class Processor
|
||||||
$content = HTML::toBBCode($activity['content']);
|
$content = HTML::toBBCode($activity['content']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$item['title'] = trim(BBCode::toPlaintext($item['title']));
|
||||||
|
|
||||||
if (!empty($activity['languages'])) {
|
if (!empty($activity['languages'])) {
|
||||||
$item['language'] = self::processLanguages($activity['languages']);
|
$item['language'] = self::processLanguages($activity['languages']);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue