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) { ...@@ -293,7 +293,7 @@ function DragAndDropBlock(runtime, element) {
content: str content: str
}); });
_fn.$popup.find(".popup-content").text(str); _fn.$popup.find(".popup-content").html(str);
return _fn.$popup.show(); return _fn.$popup.show();
} }
}, },
......
...@@ -2,12 +2,12 @@ ...@@ -2,12 +2,12 @@
{{ js_templates|safe }} {{ js_templates|safe }}
<h2 class="problem-header"> <h2 class="problem-header">
{{ title }} {{ title|safe }}
</h2> </h2>
<section class="problem" role="application"> <section class="problem" role="application">
<div class="title1">Question</div> <div class="title1">Question</div>
<p>{{ question_text }}</p> <p>{{ question_text|safe }}</p>
</section> </section>
<section class="drag-container"> <section class="drag-container">
......
<script id="item-tpl" type="text/html"> <script id="item-tpl" type="text/html">
<li class="option" data-value="{{ id }}" <li class="option" data-value="{{ id }}"
style="width: {{ size.width }}; height: {{ size.height }}"> style="width: {{ size.width }}; height: {{ size.height }}">
{{ displayName }} {{{ displayName }}}
</li> </li>
</script> </script>
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
left:{{ x }}px; left:{{ x }}px;
width:{{ width }}px; width:{{ width }}px;
height:{{ height }}px;"> height:{{ height }}px;">
<p>{{ title }}</p> <p>{{{ title }}}</p>
</div> </div>
</script> </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