Read the first user note at the bottom of this manual page:
http://www.php.net/manual/en/function.htmlentities.php
-Original Message-
Subject: [PHP] How to echo the /n, /r, etc... to the HTML display?
So, you see, if I use the PHP function, nl2br(), that took care of the cr and
Hi!
I have been working on this part for a few days now! It had become
appareant that HTML is not able to do this, so I'm trying to get it to work
in PHP but no luck! The string I see like this is when I run the UNIX
command od -av filename |more.
--clip here--
del cr lf cr lf cr lf
I suppose sp is space?
Two suggestions:
Why don't you do
pre
(print here the string as-is. newlines and spaces will be kept as they are
by the browser)
/pre
Another Possibility:
$string = preg_replace(/\\s/, nbsp;, $string);
I hope I addressed your problem and didn't miss the point
best
3 matches
Mail list logo