Re: Entity 'reg' not defined

From: Date: Fri, 22 Oct 2010 16:03:51 +0000
Subject: Re: Entity 'reg' not defined
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-309007@lists.php.net to get a copy of this message
On Fri, Oct 22, 2010 at 11:47 AM, TR Shaw <tshaw@oitc.com> wrote: > Anyone have an idea how to work around this? I tried: > > define ('reg', '®'); > define ('&reg;', '®'); > > can't figure how to override the entity table. Errors follw: > > Warning: simplexml_load_string(): > o.cc/46/e53d68e007fd45c2fccb502f2e7ccad5.php?user_id=47&amp;sub_id=61862469&reg; > in checkifup.php on line 5119 > > Warning: simplexml_load_string(): > ^ in checkifup.php on line 5119 > > Warning: simplexml_load_string(): Entity: line 220: parser error : Entity > 'reg' not defined in checkifup.php on line 5119 > > Warning: simplexml_load_string(): > /office/e53d68e007fd45c2fccb502f2e7ccad5.php?user_id=47&amp;sub_id=89877485&reg; > in checkifup.php on line 5119 > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > Does doing a str_replace and changing it to the corresponding entity number (&#174;) before parsing with simple_xml work? Here's a more robust function: http://www.sourcerally.net/Scripts/39-Convert-HTML-Entities-to-XML-Entities Adam -- Nephtali: PHP web framework that functions beautifully http://nephtaliproject.com

« previous php.general (#309007) next »