php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #50395 Possible Documentation Typo Only
Submitted: 2009-12-07 02:50 UTC Modified: 2009-12-07 11:16 UTC
From: gary at unpcbs dot com Assigned:
Status: Not a bug Package: Tidy (PECL)
PHP Version: 5.2.11 OS: Apache
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: gary at unpcbs dot com
New email:
PHP Version: OS:

 

 [2009-12-07 02:50 UTC] gary at unpcbs dot com
Description:
------------
Typo in Example #1 ob_tidyhandler()?

Should </i> be </p> in the following ...

<?php
ob_start('ob_tidyhandler');

echo '<p>test</i>';
?> 

Reproduce code:
---------------
---
From manual page: function.ob-tidyhandler#Examples
---

<?php
ob_start('ob_tidyhandler');

echo '<p>test</i>';
?> 

The above example will output:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title></title>
</head>
<body>
<p>test</p>
</body>
</html>

Expected result:
----------------
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title></title>
</head>
<body>
<p>test</i>
</body>
</html>

Actual result:
--------------
I've not bothered to test this.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-12-07 11:16 UTC] rquadling@php.net
As the output handler is the Tidy, the HTML fragment is converted into a 
clean HTML markup.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 24 13:01:31 2024 UTC