get original quotation mark from input html jquery-ThrowExceptions

Exception or error:

I would like to get the value from HTML input which contains the below text

"Gunakan articles ” A” karena ""U"" yang ada di kata ""university"" dibaca ""YU"""

I get the html content by jQuery using the code below

var ContentVal = $('#Content').val(); 

when i tried to print the result, i get below result

"\"Gunakan articles ” A” karena \"\"U\"\" yang ada di kata \"\"university\"\" dibaca \"\"YU\"\"\""

but that is not what I want, I’d like to get something original like first text

"Gunakan articles ” A” karena ""U"" yang ada di kata ""university"" dibaca ""YU"""

Do u have a solution?

How to solve:

Leave a Reply

Your email address will not be published. Required fields are marked *