Welcome! » Log In » Create A New Profile

Absolute URI rendering for images (src)

Posted by laacz 
Absolute URI rendering for images (src)
May 26, 2008 03:14PM

There is %URI.MakeAbsolute for links and such, but I can't figure out, if there is such thing for image sources (img src).

Re: Absolute URI rendering for images (src)
May 26, 2008 03:18PM

In short, there isn't. It shouldn't be something too difficult to add, however; I'd create a subclass of HTMLPurifier_URIFilter_MakeAbsolute which checks if $context->get('EmbeddedURI') is true, and if it is, passes on the call to the parent::filter().

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