Guest
Aug. 31, 2008, 04:10 PM
Name = "$LST(NoImages): Image to Link"
Active = TRUE
Multi = TRUE
URL = "$LST(NoImages)"
Bounds = "<img\s*.(jpg|png|bmp)*>"
Limit = 512
Match = "<img*src=\"\2\"[^>]+>"
Replace = "<a href=\"\2\" target=\"_blank\">[I]</a>"
Hi, I've been using this filter for some time but I have some questions
I'd like to replace the link with the "alt" text in images. But sometimes there is no alt text and sometimes the texts are too long. Is there a better way to deal with the alt text replacement?
For example, if there is no alt, replace it with text "image" .
And if text too long, trim it to 10 characters...
I'm using the list $LST(NoImages) for sites that I want to block images now.
Can I use a URL white list and a black list together.
If yes, how should it be?
Thanks
Active = TRUE
Multi = TRUE
URL = "$LST(NoImages)"
Bounds = "<img\s*.(jpg|png|bmp)*>"
Limit = 512
Match = "<img*src=\"\2\"[^>]+>"
Replace = "<a href=\"\2\" target=\"_blank\">[I]</a>"
Hi, I've been using this filter for some time but I have some questions
I'd like to replace the link with the "alt" text in images. But sometimes there is no alt text and sometimes the texts are too long. Is there a better way to deal with the alt text replacement?
For example, if there is no alt, replace it with text "image" .
And if text too long, trim it to 10 characters...
I'm using the list $LST(NoImages) for sites that I want to block images now.
Can I use a URL white list and a black list together.
If yes, how should it be?
Thanks
