Skip to content

Commit

Permalink
Dev: removed raw filters
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Jan 20, 2017
1 parent 28b24e6 commit 6028bfc
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 15 deletions.
3 changes: 2 additions & 1 deletion application/core/LSETwigViewRenderer.php
Expand Up @@ -47,7 +47,8 @@ public function addExtensions($extensions)
$sandbox = new Twig_Extension_Sandbox($policy, true);

$this->_twig->addExtension($sandbox);
}else{
}
else{
$this->_twig->addExtension(new $extName());
}
}
Expand Down
10 changes: 5 additions & 5 deletions templates/default/views/question.twig
Expand Up @@ -39,22 +39,22 @@

<!-- LimeSurvey valid message and help -->
<div class="question-valid-container bg-primary text-info col-xs-12">
{{ aQuestion.valid_message | raw }}
{{ aQuestion.man_message | raw }}
{{ aQuestion.file_valid_message | raw }}
{{ aQuestion.valid_message }}
{{ aQuestion.man_message }}
{{ aQuestion.file_valid_message }}
</div>

<!-- Answer -->
<div class="answer-container col-xs-12">
{# NOTE: If you want to customize the question rendering, use a question template #}
{{ aQuestion.answer | raw }}
{{ aQuestion.answer }}
</div>

<!-- Survey question help -->
<div class="question-help-container text-info col-xs-12">
{% if aQuestion.help.show %}
<div class="ls-questionhelp">
{{ aQuestion.help.txt | raw }}
{{ aQuestion.help.txt }}
</div>
{% endif %}
</div>
Expand Down
4 changes: 2 additions & 2 deletions templates/default/views/subviews/LEMDebug.twig
@@ -1,6 +1,6 @@
{# Data shown when LEM debug timing mode is ON #}
{% if aSurveyInfo.aLEM.debugtimming.show %}
{{ aSurveyInfo.aLEM.debugtimming.script | raw }}
{{ aSurveyInfo.aLEM.debugtimming.script }}
{% endif %}

{# Data shown when LEM debug validation mode is ON #}
Expand All @@ -9,7 +9,7 @@
<tr>
<td align='left'>
<b>Group/Question Validation Results:</b>
{{ aSurveyInfo.aLEM.debugvalidation.message | raw }}
{{ aSurveyInfo.aLEM.debugvalidation.message }}
</td>
</tr>
</table>
Expand Down
2 changes: 0 additions & 2 deletions templates/default/views/subviews/language_changer.twig
Expand Up @@ -30,7 +30,6 @@
aLCD.aListLang,
htmlOptions
)
| raw
}}

</label>
Expand All @@ -50,7 +49,6 @@
("Change the language" | gT ),
htmlOptions
)
| raw
}}
{% endif %}
</div>
Expand Down
2 changes: 1 addition & 1 deletion templates/default/views/subviews/nav_bar.twig
Expand Up @@ -24,7 +24,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<div class="navbar-brand" >{{ aSurveyInfo.name | raw }}</div>
<div class="navbar-brand" >{{ aSurveyInfo.name }}</div>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav navbar-right navbar-action-link">
Expand Down
Expand Up @@ -68,7 +68,6 @@
("Change the language" | gT ),
aButtonhtmlOptions
)
| raw
}}

{% endif %}
Expand Down
Expand Up @@ -72,7 +72,7 @@
{# TODO: move back this logic to SurveyRuntime, and provide a ready to use indexItem.statusClass #}
<li>
<div class="dropdown-header">
{{ flatEllipsizeText(group.text, true, 30, " &hellip; ", 0.6 ) | raw }}
{{ flatEllipsizeText(group.text, true, 30, " &hellip; ", 0.6 ) }}
<span class="caret"></span>
</div>
<ul class="dropdown-menu dropdown-sub-menu">
Expand All @@ -89,7 +89,7 @@
{% endif %}
<li class="{{ indexItem.coreClass }} {{statusClass}}">
<a href='{{ indexItem.url }}' data-limesurvey-submit='{{ indexItem.submit }}'>
{{ flatEllipsizeText(indexItem.text, true, 30, " &hellip; ", 0.6 ) | raw }}
{{ flatEllipsizeText(indexItem.text, true, 30, " &hellip; ", 0.6 ) }}
</a>
</li>
{% endfor %}
Expand Down
1 change: 0 additions & 1 deletion templates/default/views/subviews/start_form.twig
Expand Up @@ -36,7 +36,6 @@
'post',
(htmlOptions)
)
| raw
}}

<input type='hidden' name='fieldnames' value='{{ aSurveyInfo.hiddenfieldnames }}' id='fieldnames' />
Expand Down

0 comments on commit 6028bfc

Please sign in to comment.