simonduerr commited on
Commit
91f2076
·
verified ·
1 Parent(s): 30f2e61

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -135,7 +135,8 @@ document.getElementById('downloadPngBtn').addEventListener('click', downloadPng)
135
 
136
  </body></html>"""
137
  )
138
-
 
139
  return f"""<iframe style="width: 100%; height: 600px" name="result" allow="midi; geolocation; microphone; camera;
140
  display-capture; encrypted-media;" sandbox="allow-modals allow-forms
141
  allow-scripts allow-same-origin allow-popups
 
135
 
136
  </body></html>"""
137
  )
138
+ x = x.replace('"', "&quot;")
139
+ x = x.replace("'", "&quot;")
140
  return f"""<iframe style="width: 100%; height: 600px" name="result" allow="midi; geolocation; microphone; camera;
141
  display-capture; encrypted-media;" sandbox="allow-modals allow-forms
142
  allow-scripts allow-same-origin allow-popups