Tidy tidy_get_output

(PHP 5, PHP 7, PHP 8, PECL tidy >= 0.5.2)

tidy_get_output — 구문 분석된 tidy 마크업을 나타내는 문자열 반환


설명

tidy_get_output(tidy $tidy): string

복구된 html이 있는 문자열을 가져옵니다.


매개변수

tidy
tidy 개체.

반환 값

구문 분석된 tidy 마크업을 반환합니다.


Examples

예제 #1 tidy_get_output() 예제

                  
<?php

$html = '<p>paragraph</i>';
$tidy = tidy_parse_string($html);

$tidy->cleanRepair();

echo tidy_get_output($tidy);
?>
                  
                

위의 예는 다음을 출력합니다.

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title></title>
</head>
<body>
<p>paragraph</p>
</body>
</html>