htmlspecialchars(string, quotestyle, character-set ) — Convert special characters to HTML entities. The special characters are:
- & (ampersand) becomes '&'
- " (double quote) becomes '"'
- ' (singe quote) becomes '''
- < (less than) becomes '<'
- > (greater than) becomes '>'
htmlentities(string, quotestyle, character-set ) — Very similar to htmlspecialchars() function. However, this function all applicable characters having HTML character entity equivalents are translated into these entities. |