Closed (fixed)
Project:
Views Galleriffic
Version:
6.x-1.1
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Dec 2009 at 20:35 UTC
Updated:
11 Mar 2011 at 03:24 UTC
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
Comment #1
ddwornik commentedI meant to add a link to a similar in the Page Title
http://drupal.org/node/456256
Comment #2
joeytheman commentedYou 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.
Comment #3
acouch commentedThanks 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.
Comment #4
acouch commentedI've fixed this in the dev version. Should be available this eve.
Comment #5
acouch commentedComment #6
tomws commentedThis 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.
Comment #7
tomws commentedMy 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.