When should I output data from HTML to my code and when should I escape from the URL? I am confused which one to use when ...
For example, for an element requesting a URL:
<input type="text" value="DATA" name="URL">
Should I HTML-Escape DATA here or url avoid it here?
What about the item:
<a href="URL" title="URL">NAME</a>
Should the URL be escaped using an url or escaped HTML? What about NAME ?
Thanks, Boda Sido.
source share