Skip to content

Commit

Permalink
Fixed issue #17734: Unable to use quote inside relevance of subquestion
Browse files Browse the repository at this point in the history
Dev: use escape('html_attr') since it's an attribute
  • Loading branch information
Shnoulle committed Nov 19, 2021
1 parent 2aafaa9 commit 37da642
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -139,7 +139,7 @@
class='relevance form-control input'
id='subquestions[{{ subquestion.qid }}][{{ scale_id }}][relevance]'
name='subquestions[{{ subquestion.qid }}][{{ scale_id }}][relevance]'
value="{{ subquestion.relevance }}"
value="{{ subquestion.relevance|escape('html_attr') }}"
onkeypress=" if(event.keyCode==13) { if (event && event.preventDefault) event.preventDefault(); document.getElementById('save-button').click(); return false;}"
/>
</td>
Expand Down

0 comments on commit 37da642

Please sign in to comment.