You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working in an app that has a handful of inline script tags. During the process of configuring our content security policy to apply a nonce to these inline scrips, I replaced the raw <script> with a javascript_tag(nonce: true) do ... end.
This seems to confuse htmlbeautfier. It's removing all leading whitespace from the contents of the javascript_tag block.
Ideally it would just ignore this content --- or perhaps even offer an optional html comment to enable/disable the beautifier for a certain code blocks?
Thank you!
The text was updated successfully, but these errors were encountered:
I'm working in an app that has a handful of inline script tags. During the process of configuring our content security policy to apply a nonce to these inline scrips, I replaced the raw
<script>
with ajavascript_tag(nonce: true) do ... end
.This seems to confuse htmlbeautfier. It's removing all leading whitespace from the contents of the javascript_tag block.
Ideally it would just ignore this content --- or perhaps even offer an optional html comment to enable/disable the beautifier for a certain code blocks?
Thank you!
The text was updated successfully, but these errors were encountered: