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

Everything inside <script> (also <style>?) has to be escaped automagically #46

Open
Altai-man opened this issue Jun 13, 2021 · 0 comments

Comments

@Altai-man
Copy link
Member

Altai-man commented Jun 13, 2021

JS bits containing <, e.g. a simple for loop or a condition are parsed as opener tags resulting in a failure:

                if (month.length < 2)
                    month = '0' + month;
                if (day.length < 2)
                    day = '0' + day;

leads to

    Template parse failed: malformed tag at line 54 near '< 2)
                        day = '0' + day'
      in method panic at /home/koto/.rakubrew/versions/moar-2021.05/install/share/perl6/site/sources/DEC52040CAB8F0AC21402372C4D99D4B9A2D7D0D (Cro::WebApp::Template::Parser) line 372
      in regex sequence-element:sym<literal-open-tag> at /home/koto/.rakubrew/versions/moar-2021.05/install/share/perl6/site/sources/DEC52040CAB8F0AC21402372C4D99D4B9A2D7D0D (Cro::WebApp::Template::Parser) line 38
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

1 participant