php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #48482 add $is_html optional parameter to highlight_*
Submitted: 2009-06-05 17:22 UTC Modified: 2021-09-09 10:29 UTC
Votes:5
Avg. Score:3.2 ± 1.3
Reproduced:1 of 2 (50.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: php dot net at fuscata dot com Assigned: cmb (profile)
Status: Wont fix Package: *General Issues
PHP Version: 5.2.9 OS: Linux
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: php dot net at fuscata dot com
New email:
PHP Version: OS:

 

 [2009-06-05 17:22 UTC] php dot net at fuscata dot com
Description:
------------
highlight_string() and highlight_file() return XHTML code. Please add the optional parameter $is_xhtml similar to nl2br().


Patches

bug48482-2 (last revision 2014-12-28 19:50 UTC by kalle@php.net)
bug48482-doc (last revision 2014-12-27 18:33 UTC by kalle@php.net)
bug48482 (last revision 2014-12-27 18:27 UTC by kalle@php.net)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-01-07 20:48 UTC] kalle@php.net
-Status: Open +Status: Assigned -Package: Feature/Change Request +Package: *General Issues -Assigned To: +Assigned To: kalle
 [2011-01-07 20:48 UTC] kalle@php.net
I added the $is_xhtml parameter to nl2br() back in 5.3, I can probably cook up a patch for this aswell :)
 [2014-12-27 18:27 UTC] kalle@php.net
The following patch has been added/updated:

Patch Name: bug48482
Revision:   1419704874
URL:        https://bugs.php.net/patch-display.php?bug=48482&patch=bug48482&revision=1419704874
 [2014-12-27 18:33 UTC] kalle@php.net
The following patch has been added/updated:

Patch Name: bug48482-doc
Revision:   1419705236
URL:        https://bugs.php.net/patch-display.php?bug=48482&patch=bug48482-doc&revision=1419705236
 [2014-12-28 19:50 UTC] kalle@php.net
The following patch has been added/updated:

Patch Name: bug48482-2
Revision:   1419796214
URL:        https://bugs.php.net/patch-display.php?bug=48482&patch=bug48482-2&revision=1419796214
 [2016-07-31 04:25 UTC] kalle@php.net
-Status: Assigned +Status: Open -Assigned To: kalle +Assigned To:
 [2021-09-09 10:29 UTC] cmb@php.net
-Status: Open +Status: Wont fix -Assigned To: +Assigned To: cmb
 [2021-09-09 10:29 UTC] cmb@php.net
Given that HTML5 is ubiquitous nowadays, I don't see the point in
this.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 02:01:36 2025 UTC