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

String values are parsed as HTML #71

Closed
rchl opened this issue Jul 1, 2020 · 0 comments · Fixed by #72
Closed

String values are parsed as HTML #71

rchl opened this issue Jul 1, 2020 · 0 comments · Fixed by #72

Comments

@rchl
Copy link
Contributor

rchl commented Jul 1, 2020

  1. Open https://leezng.github.io/vue-json-pretty
  2. Paste this payload:
{"error":"<h1>x</h1>"}

Rather than showing the literal value <h1>x</h1>, the html is parsed and text is rendered bigger due to h1 tag.

rchl added a commit to rchl/vue-json-pretty that referenced this issue Jul 1, 2020
The string value should not be parsed as HTML. At least when using
default formatter.

Resolves leezng#71
rchl added a commit to rchl/vue-json-pretty that referenced this issue Jul 1, 2020
The string value should not be parsed as HTML. At least when using
default formatter.

Resolves leezng#71
@leezng leezng closed this as completed in #72 Jul 2, 2020
@rchl rchl mentioned this issue Jul 2, 2020
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 a pull request may close this issue.

1 participant