better escaping in ace view of pythoncode question type
This commit is contained in:
parent
e066129df3
commit
6243eb0596
1 changed files with 1 additions and 1 deletions
|
|
@ -642,7 +642,7 @@ def render_html_ace(last_log, **info):
|
|||
params = {
|
||||
"name": name,
|
||||
"init": init,
|
||||
"safeinit": init.replace("<", "<"),
|
||||
"safeinit": html.escape(init),
|
||||
"height": info["csq_rows"] * (fontsize + 4),
|
||||
"fontsize": fontsize,
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue