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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Feb 05 14:01:32 2025 UTC