Re: [PHP] Escaping php content output for valid html

2004-04-16 Thread Jason Wong
On Friday 16 April 2004 20:19, Merlin wrote: > hmm so you would suggest to save the entitty code directly to the database > in the first place? If the data is mainly displayed as HTML then yes, store the HTML entities and do a conversion when you want plain text or whatever. > What happens if

Re: [PHP] Escaping php content output for valid html

2004-04-16 Thread Merlin
Lowell Allen wrote: On Apr 16, 2004, at 3:40 AM, Merlin wrote: Hi there, I am just validating html generated by a php page. There is an error which comes up if ther is a dash in the content text. Those characters come out of a database. Is there a command in php which is escaping those charact

Re: [PHP] Escaping php content output for valid html

2004-04-16 Thread Lowell Allen
On Apr 16, 2004, at 3:40 AM, Merlin wrote: Hi there, I am just validating html generated by a php page. There is an error which comes up if ther is a dash in the content text. Those characters come out of a database. Is there a command in php which is escaping those characters for valid html o

[PHP] Escaping php content output for valid html

2004-04-16 Thread Merlin
Hi there, I am just validating html generated by a php page. There is an error which comes up if ther is a dash in the content text. Those characters come out of a database. Is there a command in php which is escaping those characters for valid html output? Something like urlencode, but for text e