htmlentities and XMLentities

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Is there such a function as XMLentities?

There are only 5 characters to change, so I simply do:

  str_replace( array('&','"',"'",'<','>'), array
('&amp;','&quot;','&apos;','&lt;','&gt;'), $input);


Re: htmlentities and XMLentities

On Sat, 6 Dec 2008 08:03:34 -0800 (PST), wrote:
Quoted text here. Click to load it

`htmlspecialchars()' will work also.  Read the documentation.

$email = str_replace('sig.invalid', '', $from);

Site Timeline