note 71305 added to function.wordwrap

From: Date: Tue, 21 Nov 2006 21:03:40 +0000
Subject: note 71305 added to function.wordwrap
Groups: php.notes 
Request: Send a blank email to php-notes+get-119959@lists.php.net to get a copy of this message
In response to some of the alternative wordwrap functions that attempt to work with HTML: They do not work with anything that uses <br> or <p> to force breaks. This occurs as the replacement text does not match the original as it is not breaking up words appropriately. The solution is to ignore formatting tags in the strip_tags function call ie: strip_tags( $string, '<br>' ); ---- Server IP: 64.71.164.2 Probable Submitter: 69.50.14.92 ---- Manual Page -- http://www.php.net/manual/en/function.wordwrap.php Edit -- https://master.php.net/note/edit/71305 Del: integrated -- https://master.php.net/note/delete/71305/integrated Del: useless -- https://master.php.net/note/delete/71305/useless Del: bad code -- https://master.php.net/note/delete/71305/bad+code Del: spam -- https://master.php.net/note/delete/71305/spam Del: non-english -- https://master.php.net/note/delete/71305/non-english Del: in docs -- https://master.php.net/note/delete/71305/in+docs Del: other reasons-- https://master.php.net/note/delete/71305 Reject -- https://master.php.net/note/reject/71305 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#119959) next »