[Formatting Bug]: script tag inside code tag converted to <blade ___scripts_0___/>
Muurtaja opened this issue · comments
Murtaja Ahmed Noyeem commented
Platform
Windows
Template before formatting
<pre><code class="language-markup" id="integration-script">
<script src="#" type="text/javascript"></script>
</code></pre>
Template after formatting
<pre><code class="language-markup" id="integration-script">
<blade ___scripts_0___/>
</code></pre>
Expected Behaviour
If it is developed for security, there must be a setting to ignore these features.
Relevant log output
No response
Shuhei Hayashibara commented
Hi @Muurtaja
Thank you for reporting the issue.
It seems to happen when the html alphabetical sorting option is enabled.
I'll fix it soon, thank you.
Shuhei Hayashibara commented
For temporary workaround, disable Blade Formatter: format Sort HTML Attributes
option by setting none
.
Murtaja Ahmed Noyeem commented
Thanks for the response. For now I am working by disabling the formatter
only in this part of the code. It is better for us to fix it as soon as
possible. Thanks again for making our coding better and smoother with such
a nice extension.
…On Thu, Feb 23, 2023 at 12:35 AM Shuhei Hayashibara < ***@***.***> wrote:
For temporary workaround, disable Blade Formatter: format Sort HTML
Attributes option by setting none.
—
Reply to this email directly, view it on GitHub
<#700 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKDWHFLUDSKYJXOD5WYDEBLWYZL5PANCNFSM6AAAAAAVBPM4G4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
Shuhei Hayashibara commented
Just released https://github.com/shufo/vscode-blade-formatter/releases/tag/v0.20.11 with this fix.
Shuhei Hayashibara commented
Found the regression with v0.20.11 so it reverted at v0.20.12.
I suppose to fix at next release.