Closed (fixed)
Project:
HTML Purifier
Version:
5.x-1.3
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 Jul 2008 at 01:38 UTC
Updated:
5 Dec 2008 at 00:05 UTC
I wish to migrate from another filter to HTML Purifier, but it seems to filter out my inline img_assist images. Is this desired behaviour? I have had a look at the settings and of course read the docs, but being new to it, I can't quite work out what I need to tweak to get my images back.
If of course HP and IA can work together, that is... :) Any help much appreciated, thank you.
Comments
Comment #1
ezyang commentedI don't currently have a working install of image assist, so it's difficult for me to reproduce. Can you answer these two questions?
1. What order are the filters, and what happens if you swap them?
2. What is the content of the post when it's done with HTML Purifier? When it's done with Img assist?
Comment #2
bacchus101 commentedI'm having a similar issue with YUI Editor.
I tried allowing a specification, but obviously I just don't get it. I am throwing the kitchen sink at it as far as iterating through what I think is the correct allow tag and nothing is working.
If I wanted to allow the image tag so that images embedded via YUI would work, what exactly would I have to allow?
img

img src
img.src
img[src]
img[Attr.DefaultImage]
img[Attr.Image]
etc...
BTW: I have no other filters but HTML Purifier. I can view the image in YUI Editor when editing, but on submit it is stripped.
Thanks.
Comment #3
ezyang commentedbacchus, if you could figure out what the answer to no. 2 is we could probably start moving forward on this issue. img[src|alt] should be sufficient to allow images; have you tried that yet?
Comment #4
ezyang commentedAlso, have you tried it with no value in HTML.Allowed?
Comment #5
bacchus101 commentedI wish I could say how I fixed this, but I just don't know. I uninstalled YUI and re-installed it (not paying much attention.) Did about 50 other random things while working on something else. Came back, went to test it to get more information so you could help me troubleshoot....and it just worked.
...and I have nothing in HTML.allowed.
Thanks! ;)
Comment #6
ezyang commentedI am going to close this bug for now, then. If there are any more problems, please don't hesitate to reopen.