Skip to content

Commit

Permalink
Fixed issue #08592: Bad HTML in question break layout
Browse files Browse the repository at this point in the history
Dev: FlattenText before LEM, but don't change really error viewing
Dev: FlattenText can be replaced with : strip_tags or CHtml::pirifier if needed
  • Loading branch information
Shnoulle committed Jan 26, 2014
1 parent 643d2f9 commit 2de5433
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions application/views/admin/survey/Question/questionbar_view.php
Expand Up @@ -163,15 +163,15 @@
<tr><td><strong>
<?php $clang->eT("Question:"); ?></strong></td><td>
<?php
templatereplace($qrrow['question'],array(),$aReplacementData,'Unspecified', false ,$qid);
echo FlattenText(LimeExpressionManager::GetLastPrettyPrintExpression(), true);
templatereplace(FlattenText($qrrow['question']),array(),$aReplacementData,'Unspecified', false ,$qid);
echo LimeExpressionManager::GetLastPrettyPrintExpression();
?></td></tr>
<tr><td><strong>
<?php $clang->eT("Help:"); ?></strong></td><td>
<?php
if (trim($qrrow['help'])!=''){
templatereplace($qrrow['help'],array(),$aReplacementData,'Unspecified', false ,$qid);
echo FlattenText(LimeExpressionManager::GetLastPrettyPrintExpression(), true);
templatereplace(FlattenText($qrrow['help']),array(),$aReplacementData,'Unspecified', false ,$qid);
echo LimeExpressionManager::GetLastPrettyPrintExpression();
} ?>
</td></tr>
<?php if ($qrrow['preg'])
Expand Down

0 comments on commit 2de5433

Please sign in to comment.