I would like to to use the Visualizer to display this HTML, but I can’t find a way of doing this.
Is my impression correct that the template-parameter of the Visualizer also encloses the parameter with a html-tag?
Following is my Test which results in an empty display:
I had a little trouble with the structure of your sample response (it seems to have some extra linebreaks/colons which aren’t valid JSON) but that’s probably just a pasting problem. I replaced it with some simpler HTML for my own testing purposes, and here’s an example which worked for me.
Note that you need to HTML escape the content within your template by using triple-braces, to prevent it from being printed as a literal string.
thanx @neilstudd for your reply.
Yes, it certainly was a copy/paste problem, I receive a valid JSON response containing a valid HTML content in one of the fields (I just didn’t want to copy the complete content, for brevity and security )
but unfortunately your solution doesn’t work for me, it still gives me an empty output, looking just like the result in my OP.
I am having a query on visualizer . In the JSON response which i am getting from API. I want to display a string on the basis of a value. I am using handlebar .
How to add switch case here, for example below response
data:{
{“key”:1
},{
“key”,2
}
}