[PHP] htmlentities -- can it skip tags

2003-09-14 Thread Justin French
Hi all, I need to convert some text from a database for presentation on screen... as per usual, characters like quotes and ampersands () are giving me grief. the obvious answer is to apply htmlspecialchars(), BUT this also converts all and into lt; and gt; signs, which destroys the html

Re: [PHP] htmlentities -- can it skip tags

2003-09-14 Thread John W. Holmes
Justin French wrote: Hi all, I need to convert some text from a database for presentation on screen... as per usual, characters like quotes and ampersands () are giving me grief. the obvious answer is to apply htmlspecialchars(), BUT this also converts all and into lt; and gt; signs, which

Re: [PHP] htmlentities -- can it skip tags

2003-09-14 Thread Justin French
On Monday, September 15, 2003, at 12:58 PM, John W. Holmes wrote: Justin French wrote: Hi all, I need to convert some text from a database for presentation on screen... as per usual, characters like quotes and ampersands () are giving me grief. the obvious answer is to apply

Re: [PHP] htmlentities -- can it skip tags

2003-09-14 Thread Justin French
On Monday, September 15, 2003, at 12:58 PM, John W. Holmes wrote: Justin French wrote: Hi all, I need to convert some text from a database for presentation on screen... as per usual, characters like quotes and ampersands () are giving me grief. the obvious answer is to apply