codemirror安全转换

This commit is contained in:
daiao 2017-03-31 20:46:28 +08:00
parent 6b7fb08b90
commit a63dc328af
2 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@
<li class="clearfix">
<label class=" panel-form-label fl"> 参考答案:</label>
<div class="fl" id="tpm_answer_show" style="line-height: 1.2"></div>
<div id="hidden_tpm_answer_show" class="undis"><%= @challenge.answer.blank? ? "无" : (h @challenge.answer.html_safe) %></div>
<div id="hidden_tpm_answer_show" class="undis"><%= @challenge.answer.blank? ? "无" : (@challenge.answer) %></div>
</li>
<li class="clearfix">
<label class="panel-form-label fl"><span class="c_red mr5">*</span>分值设定:</label>

View File

@ -37,7 +37,7 @@
</div>
<div id="tab_con_3" class="undis tab-info">
<div class="tab-info-inner" style="line-height: 1.9" id="game_answer_show"></div>
<div class="undis" id="hidden_game_answer"><%= @game_challenge.answer.html_safe %></div>
<div class="undis" id="hidden_game_answer"><%= @game_challenge.answer %></div>
</div>
</div>
</div>