RE: [PHP] coding special characters in html

2002-11-17 Thread John W. Holmes
> I'm cooking tothether a tiny php html editor right now, (textarea kind > of thing). To treat the text properly I need to encode characters like > '"', '<', '>', and friends into something that doesn't confuse the > browser. Htmlentities() or htmlspecialchars() > By the way, do you think encodi

Re: [PHP] coding special characters in html

2002-11-17 Thread Marco Tabini
Sure, its htmlentities(), combined (possibly) with nb2br() http://www.php.net/manual/en/function.htmlentities.php Marco On Sun, 2002-11-17 at 17:34, Børge Strand wrote: > > Hi all, > > I'm cooking tothether a tiny php html editor right now, (textarea kind > of thing). To treat the text prope