Reputation: 81
<input type="text" name="name" value="n"tee">
Is there any way to show n"tee in the text box?
Upvotes: 1
Views: 43
Reputation: 11577
you can use special char:
"
and your code will be:
<input type="text" name="name" value="n"tee">
The double quote ("
) has special meaning inside a HTML attribute. If you want to put it into an input value, you must (this is not a true must but a good rule of thumb) write it as its entity "
. There is no way around it.
Upvotes: 1