Getting an Error in ZingGrid when JSON Data has Single Quotes
Problem:
firstName = John' Labu
Please use this demo for reference.
Answer:
With reference to the first demo you shared, You can’t have this:
data='[{"firstName":"John L' abu"
The '
after L closes the '
from data. This has nothing to do with ZingGrid or JSON. It’s pure HTML. In this case, you would need to use the HTML entity code which is '
But that is ONLY the case with hard-coded data in the html attribute.