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

Properly escape & in injected live-reload script tag #825

Merged
merged 1 commit into from
Oct 24, 2019

Conversation

homeworkprod
Copy link
Contributor

@homeworkprod homeworkprod commented Oct 24, 2019

Unescaped Ampersands used as query string separators in an URL must be escaped when that URL is used as value for an HTML (or XML, for that matter) attribute.

[…] & normally indicates the start of a character entity reference or numeric character reference; writing it as & […] allows & to be included in the content of an element or in the value of an attribute.

From: https://en.wikipedia.org/wiki/HTML#Character_and_entity_references

And here's a screenshot (as seen in #824) in which the red coloring added by Firefox's source code viewer indicates an issue with the markup:
port1024

"[…] `&` normally indicates the start of a character entity reference or
numeric character reference; writing it as `&` […] allows `&` to be
included in the content of an element or in the value of an attribute."

From: https://en.wikipedia.org/wiki/HTML#Character_and_entity_references
@homeworkprod homeworkprod changed the base branch from master to next October 24, 2019 22:13
@Keats Keats merged commit b782f8c into getzola:next Oct 24, 2019
@Keats
Copy link
Collaborator

Keats commented Oct 24, 2019

Thanks!

@homeworkprod homeworkprod deleted the escape-livereload-ampersand branch November 2, 2019 19:21
Keats pushed a commit that referenced this pull request Feb 3, 2020
"[…] `&` normally indicates the start of a character entity reference or
numeric character reference; writing it as `&` […] allows `&` to be
included in the content of an element or in the value of an attribute."

From: https://en.wikipedia.org/wiki/HTML#Character_and_entity_references
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.

2 participants