Skip to content

Commit

Permalink
Fixed issue #16434: Special characters shown as HTML entities in side…
Browse files Browse the repository at this point in the history
…bar (#1452)

Dev: Text is flatten. After that. special chars are sent to the sidebar. Tags, which could be formed by special chars re-coded, are not sent.
  • Loading branch information
gabrieljenik committed Jul 2, 2020
1 parent 776a5ca commit 398d07f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/controllers/admin/surveyadmin.php
Expand Up @@ -575,7 +575,8 @@ public function getAjaxQuestionGroupArray($surveyid)
$questionText = isset($question->questionl10ns[$baselang])
? $question->questionl10ns[$baselang]->question
: '';
$curQuestion['question_flat'] = viewHelper::flatEllipsizeText($questionText, true);
$decodedQuestionText = htmlspecialchars_decode(viewHelper::flatEllipsizeText($questionText, true));
$curQuestion['question_flat'] = strip_tags($decodedQuestionText);
$curGroup['questions'][] = $curQuestion;
}

Expand Down

0 comments on commit 398d07f

Please sign in to comment.