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

Do not html escape repo view output #1657

Merged
merged 1 commit into from Sep 11, 2020
Merged

Do not html escape repo view output #1657

merged 1 commit into from Sep 11, 2020

Conversation

samcoe
Copy link
Contributor

@samcoe samcoe commented Sep 10, 2020

This PR fixes the bug where repo view was HTML escaping its output. The fix was to change from using html/template package to text/template package which does not do any sort of escaping.

https://golang.org/pkg/text/template/

Before:
Screen Shot 2020-09-10 at 9 26 23 AM

After:
Screen Shot 2020-09-10 at 9 26 03 AM

cc https://github.com/github/client-apps/discussions/23#discussioncomment-75188

@samcoe samcoe self-assigned this Sep 10, 2020
@samcoe samcoe marked this pull request as ready for review September 10, 2020 07:52
pkg/cmd/repo/view/view.go Outdated Show resolved Hide resolved
@vilmibm vilmibm added this to Backlog 🗒 in The GitHub CLI via automation Sep 10, 2020
@vilmibm vilmibm moved this from Backlog 🗒 to Needs review 🤔 in The GitHub CLI Sep 10, 2020
Copy link
Contributor

@mislav mislav left a comment

Choose a reason for hiding this comment

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

Great! Thank you for the tests 🚀

The GitHub CLI automation moved this from Needs review 🤔 to Needs to be merged 🎉 Sep 10, 2020
@samcoe samcoe merged commit d544f7f into trunk Sep 11, 2020
The GitHub CLI automation moved this from Needs to be merged 🎉 to Pending Release 🥚 Sep 11, 2020
@samcoe samcoe deleted the fix-repo-view-bug branch September 11, 2020 05:48
@github-actions github-actions bot moved this from Pending Release 🥚 to Done 💤 in The GitHub CLI Sep 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
The GitHub CLI
  
Done 💤
Development

Successfully merging this pull request may close these issues.

None yet

2 participants