[문자열함수] htmlentities() html 태그를 그대로 출력하는 함수
북마크 작성자 정보
작성자
꿘쓰

작성일/수정일
2006-04-15 14:04:35 /
htmlentities() html 태그를 그대로 출력하는 함수입니다.
string htmlentities(string str);
<?
$a = "<font size=4>";
$b = "</font>";
echo $a."Helle PHP".$b."<br>";
echo htmlentites($a)."Hello PHP".htmlentites($b);
?>
Hello PHP
<font size=4>Hello PHP</font>