Getting JS and HTML classes included in question html for mod_quiz_get_attempt_data

Getting JS and HTML classes included in question html for mod_quiz_get_attempt_data

by Pradip Jadhav -
Number of replies: 0

I am calling mod_quiz_get_attempt_data to get questions of a quiz in an external system(Laravel). I got the questions present in that quiz in response under key html, but it also included javascript and css classes. I am currently getting lots of errors in console for 
M is not defined
Y is not defined
pusher is not defined

Is there any way I can get rid of the javascript returned in response?

Average of ratings: -