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

#204 Escaping script tags #216

Merged
merged 3 commits into from
Jul 9, 2016
Merged

#204 Escaping script tags #216

merged 3 commits into from
Jul 9, 2016

Conversation

funklos
Copy link
Contributor

@funklos funklos commented Jun 29, 2016

We experienced issues with inlining this code and parsing by facebook parser. So it's indeed safer to incorporate this.

We experienced issues with inlining this code and parsing by facebook parser. So it's indeed safer to incorporate this.
@loganfsmyth
Copy link
Contributor

Seems like it would be best to handle this like the gt does in the existing codebase. Relying on \s to convert back to s seems a little gross.

@@ -20,7 +20,7 @@ var createDict = function(){
// html.removeChild(iframe);
iframeDocument = iframe.contentWindow.document;
iframeDocument.open();
iframeDocument.write('<\script>document.F=Object<\/script' + gt);
iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lt is not defined.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lt is now defined

@zloirock
Copy link
Owner

zloirock commented Jul 9, 2016

OK, thanks.

@zloirock zloirock merged commit 70f0841 into zloirock:master Jul 9, 2016
@funklos
Copy link
Contributor Author

funklos commented Jul 13, 2016

When are you planning to release the next minor/patch version so we can update to get the fix?

@zloirock
Copy link
Owner

@funklos after some days I'll publish patch release, after that I'll work on major release when I'll have time.

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

Successfully merging this pull request may close these issues.

3 participants