Closed rpeszek closed 5 years ago
Hi, I have been playing with your library and I noticed that script() tries to html encode string passed to it. Should I be passing something else than String to it?
Your examples http://www.lihaoyi.com/scalatags/ show passing String directly.
scala> import scalatags.Text.all._ scala> script("var x =\"test\"").render res1: String = <script>var x ="test"</script>
Hey,
its a little bit late, but you could use raw (e.g. script(raw("""var x = "test";"""))). For more information look in the docs: http://www.lihaoyi.com/scalatags/#Auto-escapingandunsanitizedInput
raw
script(raw("""var x = "test";"""))
Hi, I have been playing with your library and I noticed that script() tries to html encode string passed to it. Should I be passing something else than String to it?
Your examples http://www.lihaoyi.com/scalatags/ show passing String directly.