json-viewer icon indicating copy to clipboard operation
json-viewer copied to clipboard

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

Open larrybud2004 opened this issue 6 years ago • 2 comments

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

larrybud2004 avatar Mar 04 '18 17:03 larrybud2004

Can you share an example of the string? Thanks

tulios avatar Apr 03 '18 07:04 tulios

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>' }

Zorkling avatar Jul 05 '18 19:07 Zorkling