I would like to use question tags as input for a JSON-LD file. However, I realize that tags are not validated during the process of creating questions. So saboteurs can input with scripts, for example: <script>alert("test");</script> . Also the appearance of single or double quotes marks also make a JSON-LD file dysfunctional.
Do you happen to see a way to validate tags?