|
update : 2015.11.03
php.shukuma.com검색:
|
tidy::parseStringtidy_parse_string(PHP 5, PECL tidy >= 0.5.2) tidy::parseString -- tidy_parse_string — Parse a document stored in a string 설명객체 기반 형식 절차식 형식 Parses a document stored in a string. 인수
반환값Returns a new tidy instance. 예제
Example #1 tidy::parseString() example
<?php위 예제의 출력:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>
test
</title>
</head>
<body>
<p>
error<br />
another line
</p>
</body>
</html>
주의
참고
|