htmlspecialchars1 [PHP] htmlspecialchar() 다루려는 문자열 내에 HTML 태그의 의미를 가지고 있는 문자들을, 오류가 생기지 않게 변환시키는 함수입니다. string htmlspecialchars ( string $string [, int $flags = ENT_COMPAT | ENT_HTML401 [, string $encoding = 'UTF-8' [, bool $double_encode = true ]]] ) '&' (ampersand) becomes '&''"' (double quote) becomes '"' when ENT_NOQUOTES is not set."'" (single quote) becomes ''' (or ') only when ENT_QUOTES is set.'' (greater than) becomes.. 2012. 12. 18. 이전 1 다음