This question already has answers here:
Answer
Solution:
I think your problem can be solved in two ways.
- using single quotes to wrap the text.
<input type="text" value='DO"C' />
- using HTML Entities : https://www.w3schools.com/html/html_entities.asp
<input type="text" value="DO"C" />
Answer
Solution:
Always escape special symbols in javascript such as ' or " with a backslash like so \"
or \'
as for html:"
for doublequotes "
and '
for single quotes '
Source