PHP 버전
4.3+
$str = '<, >, &, ", ', ©, ™ 등을 해당 문자로 디코딩합니다.';
$decode = html_entity_decode($str);

var_dump($decode);
출력
html_entity_decode(
    string $string,
    int $flags = ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401,
    ?string $encoding = null
): string
$str = '<p>는 "문단" 요소입니다. &copy;, &trade; 엔티티도 포함하고 있습니다.';

echo html_entity_decode($str);
// 출력: <p>는 "문단" 요소입니다. ©, ™ 엔티티도 포함하고 있습니다.

echo html_entity_decode($str, ENT_NOQUOTES);
// 출력: <p>는 &quot;문단&quot; 요소입니다. ©, ™ 엔티티도 포함하고 있습니다.