Doug Fir Doug Fir - 1 month ago 8
HTML Question

What do I do with 'amp;' or '&'?

(Not sure exactly how to tag this question, any suggestions please let me know, went with just html tag for now)

I have been given a pixel to place on our website. It's just an img tag with a src attribute like this:

src="//www.googleadservices.com/pagead/conversion/123456789/?value=1.00&currency_code=USD&label=abcdefg1234&guid=ON&script=0"/


What are '& a m p ;'? Do (added spaces between characters since SO formats as just '&') I need to modify to be like so:

src="//www.googleadservices.com/pagead/conversion/123456789/?value=1.00&currency_code=USD&label=abcdefg1234&guid=ON&script=0"/

Answer

If you need your instances of & to be just &, then you can just take out the amp; part.

Incidentally, & is the HTML character entity that represents the "&" character.