Skip to content
Snippets Groups Projects
Commit 638c39c7 authored by srosse's avatar srosse
Browse files

OO-2356: escape the content of the value

parent 646b9898
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
#set($checkJavaScript = $r.checkJavaScript($responseDeclaration,$interaction.patternmask)) #set($checkJavaScript = $r.checkJavaScript($responseDeclaration,$interaction.patternmask))
<input name="qtiworks_presented_${responseIdentifier}" type="hidden" value="1"/> <input name="qtiworks_presented_${responseIdentifier}" type="hidden" value="1"/>
<span class="$localName"> <span class="$localName">
<input id="od_${responseIdentifier}" type="text" name="qtiworks_response_${responseIdentifier}" #if($responseInputString && !$responseInputString.isEmpty()) value="$responseInputString" #else value="" #end #if(!$r.isItemSessionEnded()) $r.placeholder($interaction) #end #if($r.isItemSessionEnded()) disabled #end #if($isBadResponse) class='badResponse' #end #if($interaction.expectedLength) size='$interaction.expectedLength' #end #if($checks && $checks.size() > 0) onchange='$checkJavaScript' #end autocomplete="off"/> <input id="od_${responseIdentifier}" type="text" name="qtiworks_response_${responseIdentifier}" #if($responseInputString && !$responseInputString.isEmpty()) value="$r.escapeHtml($responseInputString)" #else value="" #end #if(!$r.isItemSessionEnded()) $r.placeholder($interaction) #end #if($r.isItemSessionEnded()) disabled #end #if($isBadResponse) class='badResponse' #end #if($interaction.expectedLength) size='$interaction.expectedLength' #end #if($checks && $checks.size() > 0) onchange='$checkJavaScript' #end autocomplete="off"/>
#if($isBadResponse) #if($isBadResponse)
<span class="badResponse"> <span class="badResponse">
#if($responseDeclaration.cardinality.toQtiString() == "record") #if($responseDeclaration.cardinality.toQtiString() == "record")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment