tidy_get_output Return a string representing the parsed tidy markup php函数


tidy_get_output

(PHP 5, PECL tidy >= 0.5.2)

tidy_get_outputReturn a string representing the parsed tidy markup

说明

string tidy_get_output ( tidy $object )

Gets a string with the repaired html.

参数

object

The Tidy 对象。

返回值

Returns the parsed tidy markup.

范例

Example #1 tidy_get_output() example

<?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>



相关阅读:
tidy_load_config Load an ASCII Tidy configuration file with the specified encoding
tidy_reset_config Restore Tidy configuration to default values
tidy_save_config Save current settings to named file
tidy_setopt Updates the configuration settings for the specified tidy document
tidy_set_encoding Set the input/output character encoding for parsing markup
tidy_warning_count Returns the Number of Tidy warnings encountered for specified document
time 返回当前的 Unix 时间戳
timezone_abbreviations_list 别名 DateTimeZone::listAbbreviations
timezone_identifiers_list 别名 DateTimeZone::listIdentifiers
timezone_location_get 别名 DateTimeZone::getLocation
timezone_name_from_abbr Returns the timezone name from abbreviation
timezone_name_get 别名 DateTimeZone::getName
timezone_offset_get 别名 DateTimeZone::getOffset
timezone_open 别名 DateTimeZone::__construct
快速导航

Copyright © 2016 phpStudy |