diff --git a/freetextresponse/templates/freetextresponse_view.html b/freetextresponse/templates/freetextresponse_view.html index 07b75802..2ddf367d 100644 --- a/freetextresponse/templates/freetextresponse_view.html +++ b/freetextresponse/templates/freetextresponse_view.html @@ -2,7 +2,7 @@
{{ prompt }}
+{{ prompt|safe }}
Please enter your response here
" + context = { + 'prompt': studio_settings_prompt, + } + template = get_template('freetextresponse_view.html') + fragment = self.xblock.build_fragment( + template, + context, + initialize_js_func='FreeTextResponseView', + additional_css=[], + additional_js=[], + ) + self.assertIn(studio_settings_prompt, fragment.content) + def test_max_score(self): """ Tests max_score function