Commit 19364411 by E. Kolpakov

Added ability to set html to popup message

Set html templates to skip escaping HTML in block title, question
zones, blocks and feedbacks
parent 03b0ae1d
......@@ -293,7 +293,7 @@ function DragAndDropBlock(runtime, element) {
content: str
});
_fn.$popup.find(".popup-content").text(str);
_fn.$popup.find(".popup-content").html(str);
return _fn.$popup.show();
}
},
......
......@@ -2,12 +2,12 @@
{{ js_templates|safe }}
<h2 class="problem-header">
{{ title }}
{{ title|safe }}
</h2>
<section class="problem" role="application">
<div class="title1">Question</div>
<p>{{ question_text }}</p>
<p>{{ question_text|safe }}</p>
</section>
<section class="drag-container">
......
<script id="item-tpl" type="text/html">
<li class="option" data-value="{{ id }}"
style="width: {{ size.width }}; height: {{ size.height }}">
{{ displayName }}
{{{ displayName }}}
</li>
</script>
......@@ -18,7 +18,7 @@
left:{{ x }}px;
width:{{ width }}px;
height:{{ height }}px;">
<p>{{ title }}</p>
<p>{{{ title }}}</p>
</div>
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment