forked from GNUsocial/gnu-social
render question description in QnA plugin
This commit is contained in:
parent
3f3babbcf2
commit
f1772b75d5
@ -219,7 +219,7 @@ class QnA_Answer extends Managed_DataObject
|
||||
|
||||
$out->elementStart('p', array('class' => implode(' ', $cls)));
|
||||
$out->elementStart('span', 'answer-content');
|
||||
$out->raw(QnAPlugin::shorten($answer->content, $notice));
|
||||
$out->raw(common_render_text($answer->content));
|
||||
$out->elementEnd('span');
|
||||
|
||||
if (!empty($answer->revisions)) {
|
||||
|
@ -227,7 +227,7 @@ class QnA_Question extends Managed_DataObject
|
||||
|
||||
if (!empty($question->description)) {
|
||||
$out->elementStart('span', 'question-description');
|
||||
$out->raw(QnAPlugin::shorten($question->description, $notice));
|
||||
$out->raw(common_render_text($question->description));
|
||||
$out->elementEnd('span');
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user