On Wed, 2009-07-22 at 10:34 -0500, Patrick Phelan wrote:
> I am experimenting with placing Adsense and/or LinkShare Banners in
> the $config['site']['notice'] section to promote specials, ads, etc.
> 
> Using the code below provided by linkshare all seems to work well with
> Firefox and Internet Explorer.  However, I am experiencing errors in
> Safari 3.2.2 and Chrome
> 
> $config['site']['notice'] = '<center><a
> href="http://click.linksynergy.com/fs-bin/click?id=NvOyGRT7sjk&offerid=176229.10000047&type=4&subid=0";><IMG
>  alt="EDUN 125X125G" border="0" 
> src="http://www.edunonline.com/ls/125X125G.jpg";></a><IMG border="0" width="1" 
> height="1" 
> src="http://ad.linksynergy.com/fs-bin/show?id=NvOyGRT7sjk&bids=176229.10000047&type=4&subid=0";></center>';
> 
> 
> These are the errors with the remainder of the page blank:
> 
> 
> This page contains the following errors:
> error on line 65 at column 1243: EntityRef: expecting ';'
> 
> Below is a rendering of the page up to the first error.
> 
> and
> 
> 
> This page contains the following errors:
> error on line 65 at column 90: EntityRef: expecting ';'
> 
> Below is a rendering of the page up to the first error.
> 
> 
> Any thoughts on ways to modify the linkshare code for this to render
> properly?  
> 


You need to encode ampersands: & -> &#38;

And if you have <script>s inside the <body> of your document, set the
headers to send Content-type: text/html.

-Sarven

_______________________________________________
Laconica-dev mailing list
[email protected]
http://mail.laconi.ca/mailman/listinfo/laconica-dev

Reply via email to