Describe the bug
Apostrophes in metadata cause volatility to run without error; however, the viz is broken and the following error appears on the screen instead of some 🍝 :
Uncaught SyntaxError: Unexpected identifier
Other special characters do not cause this problem. I tested:
*(){},\/"&
To Reproduce
Toss some apostrophes in your metadata; see references below.
Expected behavior
A visualization should appear, not an error message in the viz.
Describe the bug Apostrophes in metadata cause
volatility
to run without error; however, the viz is broken and the following error appears on the screen instead of some 🍝 :Uncaught SyntaxError: Unexpected identifier
Other special characters do not cause this problem. I tested:
*(){},\/"&
To Reproduce Toss some apostrophes in your metadata; see references below.
Expected behavior A visualization should appear, not an error message in the viz.
Screenshots
References forum xref possible approach for validating json metadata fed to vega spec.