Welcome! » Log In » Create A New Profile

Quotes added to property background: url()

Posted by D4P 
D4P
Quotes added to property background: url()
August 05, 2010 03:36AM

Hello Ambush,

I'm having a problem where style="background-image: url(http://www.blah.com/image.gif);" is begin converted to style="background-image: url("http://www.blah.com/image.gif");" which is creating the problem of double-quotes within double-quotes. Is this a problem with HTML Purifier or am I doing something wrong?

Best, D4P

Re: Quotes added to property background: url()
August 05, 2010 03:45AM

The inner quotes should be escaped appropriately. Are you doing any post-processing?

Yes actually I was performing an htmlspecialchars_decode() on the output, which was causing the problem. Thank you. ;)

Sorry, you do not have permission to post/reply in this forum.