-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
HTML-escape plain-text READMEs in previews #4192
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4192 +/- ##
==========================================
+ Coverage 19.96% 19.97% +<.01%
==========================================
Files 153 153
Lines 30494 30498 +4
==========================================
+ Hits 6088 6091 +3
- Misses 23491 23493 +2
+ Partials 915 914 -1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nickolas360 Does it really work for you? At least it doesn't work for me. Your example renders as you've described after applying your PR.
@nickolas360 can you please backport this (by cherry-pick 2bb73fe) to release/v1.4? |
BTW, it's related to #3903 but fix only a part of it. |
Previews of plain-text README files are not currently HTML-escaped; this causes issues when READMEs contain characters like
<
and>
, including constructs likeCopyright 2018 Example <[email protected]>
, which currently renders asCopyright 2018 Example
.This PR ensures that plain-text READMEs are HTML-escaped.