Forum Moderators: open

Message Too Old, No Replies

Ampersand in img tag

         

JustJon

5:04 pm on Mar 7, 2005 (gmt 0)

10+ Year Member



I'm new to xml, but trying to set up an RSS feed for my site. My problem is that in order to include an image, I need to put variables in the url for the image, but xml doesn't like the ampersands. The offending line looks like:

<img src="http://mysite/?u=justjon&i=2005/03/06/1110143166.jpg&c=t" />

Any ideas what I can do about this? Thanks.

brucec

5:21 pm on Mar 7, 2005 (gmt 0)

10+ Year Member



Did you try using &amp;? Just substitute &amp; for your ampersand and it will work. :)

Bruce

JustJon

7:13 pm on Mar 7, 2005 (gmt 0)

10+ Year Member



That worked. Thanks alot.