tulios / json-viewer

It is a Chrome extension for printing JSON and JSONP.
https://chrome.google.com/webstore/detail/json-viewer/gbmdgpbipfallnflgajpaliibnhdgobh
MIT License
3.34k stars 684 forks source link

Bug, Does not display properly if string contains <br/> #199

Open larrybud2004 opened 6 years ago

larrybud2004 commented 6 years ago

returned data string contains
breaks the formatting and you don't see the whole JSON

tulios commented 6 years ago

Can you share an example of the string? Thanks

Zorkling commented 6 years ago

Ran into the same thing, here's a simplified example.

{ "property": "foo", "subObject": { "htmlWithBr": "beforeBr<br /><div>AfterBr</div>", } }

Also occurs with top level properties { 'property': 'beforeBr<br /><div>AfterBr</div>' }