Sanitising Strings

Sanitising for HTML ‘&’ (ampersand) becomes ‘&amp;’‘”‘ (double quote) becomes ‘&quot;’ when ENT_NOQUOTES is not set.“‘” (single quote) becomes ‘&#039;’ (or &apos;) only when ENT_QUOTES is set.‘<‘ (less than) becomes ‘&lt;’‘>’ (greater than) becomes ‘&gt;’ mysql_real_escape_string – When passing stings to MySQL queries Note – this will not work if you don’t have a database […]

Read More