render question description in QnA plugin

This commit is contained in:
Evan Prodromou 2011-05-23 12:30:34 -04:00
parent 3f3babbcf2
commit f1772b75d5
2 changed files with 2 additions and 2 deletions

View File

@ -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)) {

View File

@ -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');
}