I know these:
- For HTML text : htmlentities() or htmlspecialchars() 
 When outputting plain visible text within HTML para/div tags.
- For URL-encoded values : urlencode() 
 When sending data to a function in PHP that expects URL encoded values.
I dont know this:
- For HTML form values : ??
 When outputting hidden data within HTML<input value="DATA">tags.
 
     
    