-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
AngularJS inline templates are being corrupted! #385
Comments
The actual problem is that the html-beautifier doesn't care for the type attribute of the script tag: it sees a script, it treats it as a beautifiable chunk. |
there isnt any way to tell js-beautify to just indent the content between the tags
and
? |
Yes, that is possible. As @einars said, we don't check the type attribute right now. |
…es with inline javascript
That would be great if you can beautify those templates as HTML. |
I think this is fixed in v1.5.2. Please review and comment if I'm wrong. |
Thanks for this wonderful tool.
Here is the syntax of angular inline template:
js-beautify doesn't like the hyphen in special angular attributes (and HTML tags in general) and I'm end up with:
This is a real problem. Any way to solve it?
The text was updated successfully, but these errors were encountered: