I have a textbox whose value contains a string with a single quote e.g. Andy's String
<input type='text' value='Andy's String' />
This obviously does not render correctly in a browser. Whats the best way round this?
I have a textbox whose value contains a string with a single quote e.g. Andy's String
<input type='text' value='Andy's String' />
This obviously does not render correctly in a browser. Whats the best way round this?
<input type='text' value="Andy's String" />
Alternatively:
<input type='text' value='Andy's String' />
Best way is to use double quotes :)
<input type="text" value="Andy's String" />