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

ezyang’s picture

I 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?

bacchus101’s picture

I'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]
Only local images are allowed.

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.

ezyang’s picture

bacchus, 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?

ezyang’s picture

Also, have you tried it with no value in HTML.Allowed?

bacchus101’s picture

I 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! ;)

ezyang’s picture

Status: Active » Fixed

I am going to close this bug for now, then. If there are any more problems, please don't hesitate to reopen.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.