Skip to content
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

<script> in HTML Template #32

Closed
daszod opened this issue Nov 5, 2019 · 1 comment
Closed

<script> in HTML Template #32

daszod opened this issue Nov 5, 2019 · 1 comment

Comments

@daszod
Copy link

daszod commented Nov 5, 2019

Hi,
i have embedded a <script> before the first

in the HTML Template.
And everytime i am saving the document and the sync upload my document to Servicenow it gives me some other code.

example in VSC:

<script type="text/ng-template" id="dummy.xml">
    <div ng-include="'dummy'"></div>
</script>
<div class=""> ... the usual html code follows.

What Snow shows me after the sync:

&lt;script&gt;
    <div ng-include="dummy'"></div>
&lt;/script&gt;
<div class=""> ... the usual html code follows.

When i use the Servicenow Widget Editor there is no problem and the code works.

@arnoudkooi
Copy link
Owner

arnoudkooi commented Nov 5, 2019

This is a copy of
#24
Update documentation:
#28
So the solution is you would need to set system property in your instance
glide.rest.sanitize_request_input to false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants