PHP

    get_html_translation_table ( htmlspecialchars()와 htmlentities()에서 사용하는 변환표를 반환합니다 )
    • 조회수 4,458
    • 작성일 2011-05-31
    •  

    get_html_translation_table

    htmlspecialchars()와 htmlentities()에서 사용하는 변환표를 반환합니다

    array get_html_translation_table ([ int $table [, int $quote_style ]] )

    특수 문자는 여러 방법으로 인코드 할 수 있습니다.
    예를 들면, "는 ", ", &#x22이 될 수 있습니다. get_html_translation_table()은 이 중 가장 평범한 형식만을 반환합니다.

    변환표를 배열로 반환합니다.

    $trans_tbl = get_html_translation_table(HTML_ENTITIES);
    $trans_tbl = array_flip($trans_tbl);