kotlinx.html icon indicating copy to clipboard operation
kotlinx.html copied to clipboard

script tag in stream mode escapes quotes

Open coolemza opened this issue 9 years ago • 2 comments
trafficstars

script(type = ScriptType.textJavaScript) { +"var str = 'some text';" } will result:

how to avoid quotation in this case?

coolemza avatar Sep 30 '16 11:09 coolemza

See unsafe

cy6erGn0m avatar Sep 30 '16 12:09 cy6erGn0m

I think, this counts as another vote for #5 :-) Two completely different use-cases for + should be called differently. One implies html escaping, while another explicitly does not perform any.

kosiakk avatar Mar 13 '17 01:03 kosiakk