Error in JSON parsing using jQuery.parseJSON
My input JSON string to the jQuery.parseJSON() function is :
{
"items": [
{
"contentTitle": "Ask an Expert : Neha Test Expert : <script>"
}
]
}
I feel that the parser parses "<script>" as the HTML script tag. Hence, the doublequote(") after <script> in the JSON is considered as start of string and hence, while rendering the text, there are Javascript errors.
Can somebody please clarify and suggest what needs to be done?
Thanks,
Gaurav