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

Should check to see if a string ends with > #14

Closed
phawxby opened this issue Nov 27, 2018 · 2 comments
Closed

Should check to see if a string ends with > #14

phawxby opened this issue Nov 27, 2018 · 2 comments

Comments

@phawxby
Copy link

phawxby commented Nov 27, 2018

Some strings may start with < but are not actually html. An example would be http preload headers.
<foo.svg>; rel=preload; as=image

These get mangled as it thinks they're html.

<foo.css>
  ; rel=preload; as=style
</foo.css>
@rayrutjes
Copy link
Member

Hey,

Thanks for opening this.

I think you are the first one encountering this use case.

If you have a solution feel free to submit a PR.

If you have actual preload headers, do you still want to format something?

@rayrutjes
Copy link
Member

This issue was addressed in 7.0.0.

#17

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

2 participants