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

Disable HTMLEscape in reflect JSON encoder #704

Merged
merged 1 commit into from
Apr 29, 2019
Merged

Disable HTMLEscape in reflect JSON encoder #704

merged 1 commit into from
Apr 29, 2019

Conversation

prashantv
Copy link
Collaborator

Fixes #700.

Zap's custom JSON encoder does not escape HTML, so make encoding
by the reflect-based JSON encoder work the same way.

Fixes #700.

Zap's custom JSON encoder does not escape HTML, so make encoding
by the reflect-based JSON encoder work the same way.
@prashantv prashantv requested a review from abhinav April 26, 2019 15:18
@codecov
Copy link

codecov bot commented Apr 26, 2019

Codecov Report

Merging #704 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #704      +/-   ##
==========================================
+ Coverage   97.39%   97.39%   +<.01%     
==========================================
  Files          40       40              
  Lines        2108     2109       +1     
==========================================
+ Hits         2053     2054       +1     
  Misses         47       47              
  Partials        8        8
Impacted Files Coverage Δ
zapcore/json_encoder.go 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update badef73...7a7ab96. Read the comment docs.

@prashantv prashantv merged commit 1c5a13c into master Apr 29, 2019
@prashantv prashantv deleted the htmlescape branch April 29, 2019 02:34
lixingwang added a commit to lixingwang/zap that referenced this pull request May 10, 2019
* master:
  README: Switch to travis-ci.com for badge (uber-go#709)
  Fix changelog links for 675
  Prep for 1.10.0 release, update CHANGELOG (uber-go#705)
  Add Go 1.12 for Travis (uber-go#707)
  Fix call depth of standard logger in go1.12 (uber-go#706)
  Fix inconsistency between MapObjectEncoder's AddByteString and AppendByteString (uber-go#657)
  Disable HTMLEscape in reflect JSON encoder (uber-go#704)
cgxxv pushed a commit to cgxxv/zap that referenced this pull request Mar 25, 2022
Fixes uber-go#700.

Zap's custom JSON encoder does not escape HTML, so make encoding
by the reflect-based JSON encoder work the same way.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Disable HTMLEscape for zapcore.JSONEncoder
3 participants