I want to create a HTML script tag which requires quotes.
If I simply use
from py.xml import html
html.script( "MathJax = { tex: { inlineMath: [['$', '$'], ['\\(', '\\)']] } };")
the quotes ' get escaped and I end up with:
MathJax = { tex: { inlineMath: [['$', '$'], ['\(', '\)']] } };
which ofc does not work as javascript.
Is there a way to disable escaping? I could not find anything in the docu.
I want to create a HTML script tag which requires quotes. If I simply use
the quotes
'
get escaped and I end up with:MathJax = { tex: { inlineMath: [['$', '$'], ['\(', '\)']] } };
which ofc does not work as javascript. Is there a way to disable escaping? I could not find anything in the docu.