htmlentities
- Convert all applicable characters to HTML entities.- [ Manual ]
htmlspecialchars
- Convert special characters to HTML entities.- The translations performed are:
- '&' (ampersand) becomes '&'
- '"' (double quote) becomes '"' when ENT_NOQUOTES is not set.
- "'" (single quote) becomes ''' (or ') only when ENT_QUOTES is set.
- '<' (less than) becomes '<'
- '>' (greater than) becomes '>'
沒有留言:
張貼留言