컴

htmlspecialchars_decode - 특수 HTML 엔터티를 다시 문자 로 변환합니다.

· 2017-04-04 (화) 12:36:23 · 3077

htmlspecialchars_decode - 특수 HTML 엔터티를 다시 문자 로 변환합니다.

 

설명 ¶

 

string htmlspecialchars_decode ( string $string [, int $flags= ENT_COMPAT | ENT_HTML401 ])

이 함수는 htmlspecialchars () 의 반대입니다 . 특별한 HTML 엔터티를 다시 문자로 변환합니다.

 

변환 된 엔티티는 & amp; , " ( ENT_NOQUOTES설정되지 않은 경우), & # 039; (언제 ENT_QUOTES설정 되는지 ), & lt; 및 한다 .

 

Example # 1 htmlspecialchars_decode () 예제

 

<?php

$str = "<p>this -> "</p>\n";

 

echo htmlspecialchars_decode($str);

 

// note that here the quotes aren't converted

echo htmlspecialchars_decode($str, ENT_NOQUOTES);

?>

위의 예제는 다음과 같이 출력됩니다 :

 

<p> this -> "</ p>

<p> this -> & quot; </ p>

|
댓글을 작성하시려면 로그인이 필요합니다.

개발자팁

5,403건

개발과 관련된 유용한 정보를 공유하세요. 질문은 QA에서 해주시기 바랍니다.

+
분류 제목 글쓴이 날짜 조회
PHP 17-04-04 조회 2,387
PHP 17-04-04 조회 2,886
jQuery 17-04-03 조회 1,794
jQuery 17-04-03 조회 2,316
jQuery 17-04-03 조회 1,888
node.js 17-03-29 조회 3,918
jQuery 17-03-29 조회 2,196
jQuery 17-03-29 조회 2,159
jQuery 17-03-29 조회 2,060
jQuery 17-03-28 조회 2,113
jQuery 17-03-28 조회 2,502
PHP 17-03-28 조회 2,320
PHP 17-03-28 조회 1,927
PHP 17-03-28 조회 2,121
jQuery 17-03-27 조회 3,226
jQuery 17-03-27 조회 1,895
jQuery 17-03-27 조회 1,792
jQuery 17-03-26 조회 2,151
jQuery 17-03-26 조회 2,109
jQuery 17-03-26 조회 2,295
jQuery 17-03-23 조회 2,087
jQuery 17-03-23 조회 2,047
jQuery 17-03-23 조회 2,033
jQuery 17-03-22 조회 2,100
jQuery 17-03-22 조회 2,315
jQuery 17-03-22 조회 1,963
jQuery 17-03-20 조회 2,146
jQuery 17-03-20 조회 2,400
jQuery 17-03-20 조회 1,983
jQuery 17-03-18 조회 2,304