Admun's NUDN

admun

  • San Francisco, CA

Navigation

Navigation

Categories

Search

htmlspecialchars & htmlspecialchars_decode

To properly handle inputs, i.e. all those ", `, and '. Be sure to use htmlspecialchars to convert them before writing to the table. Then use htmlspecialchars_decode to decode it before display. This also work with UTF-8, but not some of the encoding. So, special handling is need to detected them and handle.

How simple an idea... and how come I never pay attention? sad

14:30:49 on 04/14/07 by Admun - Developer Notes - tags: - #
<=   April 2007   =>
SunMonTueWedThuFriSat
1234567
891011121314
15161718192021
22232425262728
2930