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

Parse noel templates with $.parseHTML #380

Merged
merged 2 commits into from Sep 5, 2013

Conversation

jugglinmike
Copy link
Collaborator

Because template strings are so often defined within script tags in
the document, they commonly contain leading and trailing whitespace.
The jQuery team advises sanitizing such strings using $.parseHTML`
before passing them to the jQuery function [1].

[1] http://blog.jquery.com/2013/05/24/jquery-1-10-0-and-2-0-1-released/

Because template strings are so often defined within `script` tags in
the document, they commonly contain leading and trailing whitespace.
The jQuery team advises sanitizing such strings using $.parseHTML`
*before* passing them to the jQuery function [1].

[1] http://blog.jquery.com/2013/05/24/jquery-1-10-0-and-2-0-1-released/
This latest version will ensure that the TravisCI build fails in
response to failures in the Node.js unit tests.
@SBoudrias
Copy link
Collaborator

+1 !

@tbranyen
Copy link
Owner

tbranyen commented Sep 5, 2013

Yee haw!

tbranyen added a commit that referenced this pull request Sep 5, 2013
Parse `noel` templates with $.parseHTML
@tbranyen tbranyen merged commit 36fd68c into tbranyen:master Sep 5, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants