Merge pull request #4563 from Stanford-Online/stv/jsinput/cdata
Wrap JSInput Python code in CDATA section
This commit is contained in:
@@ -5,6 +5,7 @@ metadata:
|
||||
data: |
|
||||
<problem display_name="webGLDemo">
|
||||
<script type="loncapa/python">
|
||||
<![CDATA[
|
||||
import json
|
||||
def vglcfn(e, ans):
|
||||
'''
|
||||
@@ -22,6 +23,7 @@ data: |
|
||||
selectedObjects = state["selectedObjects"]
|
||||
return selectedObjects["cylinder"] and not selectedObjects["cube"]
|
||||
'''
|
||||
]]>
|
||||
</script>
|
||||
<p>
|
||||
The shapes below can be selected (yellow) or unselected (cyan).
|
||||
|
||||
Reference in New Issue
Block a user