Thứ Năm, 3 tháng 8, 2017

PHP HTML special decode textarea

Description: load data have htmlspecialchars, example: html char, new line, special char.... This need decode 1 again.
Solution: decode again htmlspecialchars_decode at PHP load.
More: At prevent sql rejection $_POST have special char at Textarea. This need encode to safe data.

<php? 
echo htmlspecialchars_decode($product['COLUMN_DATA']);
?>