php man page for tidy_access_count

Query: tidy_access_count

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

TIDY_ACCESS_COUNT(3)							 1						      TIDY_ACCESS_COUNT(3)

tidy_access_count - Returns the Number of Tidy accessibility warnings encountered for specified document

SYNOPSIS
int tidy_access_count (tidy $object)
DESCRIPTION
tidy_access_count(3) returns the number of accessibility warnings found for the specified document.
PARAMETERS
o $object - The Tidy object.
RETURN VALUES
Returns the number of warnings.
EXAMPLES
Example #1 tidy_access_count(3) example <?php $html ='<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN"> <html><head><title>Title</title></head> <body> <p><img src="img.png"></p> </body></html>'; // select the accessibility check level: 1, 2 or 3 $config = array('accessibility-check' => 3); $tidy = new tidy(); $tidy->parseString($html, $config); $tidy->cleanRepair(); /* Never forget to call this! */ $tidy->diagnose(); echo tidy_access_count($tidy); //5 ?>
NOTES
Note Due to the design of the TidyLib, you must call tidy_diagnose(3) before tidy_access_count(3) or it will return always 0. You must also need to enable the accessibility-check option.
SEE ALSO
tidy_error_count(3), tidy_warning_count(3). PHP Documentation Group TIDY_ACCESS_COUNT(3)
Related Man Pages
tidy_diagnose(3) - php
tidy_error_count(3) - php
tidy.diagnose(3) - php
tidy.errorbuffer(3) - php
tidy.body(3) - php
Similar Topics in the Unix Linux Community
KnowledgeTree business model hits many a niche
TYPOlight webCMS 2.6.1 (Default branch)
TYPOlight webCMS 2.6.2 (Default branch)
awk modify multiple columns with pipes
Delete all lines ending with /