I have an image title with quotes in it.

When it gets output I end up with " in the HTML. Then I enter the " into the title, the image_field must convert it into ", and then on display it gets cleaned to "

I think this may be a real issue this time.

Comments

ddwornik’s picture

I meant to add a link to a similar in the Page Title

http://drupal.org/node/456256

joeytheman’s picture

You can manually open up views_galleriffic.module in the module folder and comment out line 86 with 2 forward slashes at the beginning of the line.

So from this
--
$vars['fields']['title_field']->content = htmlspecialchars(strip_tags($vars['fields']['title_field']->content));
--

to this
--
//$vars['fields']['title_field']->content = htmlspecialchars(strip_tags($vars['fields']['title_field']->content));
--

This would be a great feature to have added to the module.

acouch’s picture

Thanks for reporting this.

The characters are stripped because they are also going into the alt of the image. I will separate that out so it doesn't screw up the title. The method above could cause problems with the images themselves.

I will get around to this in the next couple of weeks. Thanks for your patience.

acouch’s picture

I've fixed this in the dev version. Should be available this eve.

acouch’s picture

Status: Active » Closed (fixed)
tomws’s picture

Version: 6.x-1.0-rc3 » 6.x-1.1
Status: Closed (fixed) » Active

This HTML-scrubbing still seems to be a problem in 6.x-1.1. I'm using the "view all image thumbnails" view as the full-page gallery setting. No matter how I try to modify the view to output the title as a link, it gets scrubbed.

tomws’s picture

Status: Active » Closed (fixed)

My fail. Finally had a few minutes to look at this. My default input format was set to a plain text format. Since the call to check_markup on line 67 is hard-coded to FILTER_FORMAT_DEFAULT, it was stripping the anchor HTML. I changed my default format back to Filtered HTML to work around this problem.

On a related note, it would be a nice addition to allow manual selection of input format, or at least to use Filtered as the default.