php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #16991 wordwrap should respect html tags
Submitted: 2002-05-03 09:29 UTC Modified: 2013-10-28 07:17 UTC
Votes:3
Avg. Score:4.7 ± 0.5
Reproduced:3 of 3 (100.0%)
Same Version:1 (33.3%)
Same OS:0 (0.0%)
From: martin at humany dot com Assigned: krakjoe (profile)
Status: Closed Package: *General Issues
PHP Version: 4.2.0 OS: Windows 2000
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: martin at humany dot com
New email:
PHP Version: OS:

 

 [2002-05-03 09:29 UTC] martin at humany dot com
wordwrap should respect html tags and not count these as normal letters. i suggest by a extra parameter turning the behavior on/off, or a separate function, like wordwrap_html()

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-10-28 07:17 UTC] krakjoe@php.net
-Status: Open +Status: Closed -Package: Feature/Change Request +Package: *General Issues -Assigned To: +Assigned To: krakjoe
 [2013-10-28 07:17 UTC] krakjoe@php.net
This isn't a realistic suggestion; if you need to wordwrap without markup then striptags, and reformat.

Closing the bug.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 17 12:01:33 2025 UTC