-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unable to insert raw content into script tag #83
Comments
Have you tried to wrap your script with |
Unfortunatetly there are limitations for unsafe raw content in DOM mode. This particular case need to be fixed somehow. |
we tried to wrap the script with comments with no success (see https://github.com/abendt/kotlin-html-jscript/blob/master/src/test/kotlin/HtmlScriptTest.kt) Our current workaround is to use the Streaming/String based builders. |
Fixed in 0.6.10 |
yes, can confirm. thanks! |
the documentation (https://github.com/kotlin/kotlinx.html/wiki/Style-and-script-tags) says that it should be possible to insert raw content into a script tag.
This does not seem to work if I'm using the createHTMLDocument builder as then the inserted "raw" content needs to be valid XML. The example below causes a SAXParseException.
Is this intended?
I also setup a sample project to demonstrate the issue: https://github.com/abendt/kotlin-html-jscript/blob/master/src/test/kotlin/HtmlScriptTest.kt
The text was updated successfully, but these errors were encountered: