Closed (duplicate)
Project:
Views (for Drupal 7)
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Jul 2009 at 13:10 UTC
Updated:
17 Dec 2010 at 21:44 UTC
Jump to comment: Most recent file
Comments
Comment #1
dawehnerI cannot reproduce it, i tryed out DRUPAL-6--2 and DRUPAL-6--3 and DRUPAL-6--2-6
What kind of field are you using?
Comment #2
matteogeco commentedHi, this happens to me with node titles in table style views. Try to create a node with "A & B" as title and a table view that lists that node.
Comment #3
dawehner-
Comment #4
dawehnerIt works fine, see the screenshot
Comment #5
matteogeco commentedHi dereine, thank you for bringing back the thread to life (sorry for my english...). In your screenshot, I can't see if it works; the visibile title is ok, but we are talking about the "a" tag "title" attribute, i.e. the tooltip that appears when you put the mouse pointer over the link; what happens if you put the mouse pointer over "A & B"?
Comment #6
dawehnerThats not really solveable currently, sadly:
The l function users check_plain for the title arguments. Views usres check_plain to get safe tokens. Perhaps someone has a suggestion to make this clean but also safe.
Comment #7
esmerel commentedIf someone comes up with a solution, they can always post a patch.
Comment #8
mustanggb commentedWe can't double_encode = false, see #882438: Globally prevent double encoding in check_plain() by raising minimum PHP to 5.2.3
I don't want to suggest suggest altering $tokens as other code likely relies on these being clean, the same applies to l()
Therefore the attached patch will use clean $tokens, unclean them, then clean them again in l()
Comment #9
bojanz commentedThere's a patch in here.
Comment #10
anrikun commentedI used to do like #8 before, until I noticed that there are some cases it outputs unsafe/wrong code.
So far the best solution I have found is the one I propose here: #769458: Provide a way to use raw values of token too
Comment #11
merlinofchaos commentedThis is now a dup of the issue mentioned in #10.