Closed (fixed)
Project:
Language Icons
Version:
6.x-1.0-rc1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
2 Dec 2008 at 05:45 UTC
Updated:
18 Jan 2011 at 16:50 UTC
Jump to comment: Most recent
Comments
Comment #1
Freso commentedThe HTML specification allows using pairs of single and double quotes interchangeably, so this is not the problem. Even if it was, this would not cause the browser to show the HTML instead of the "alt" text (or nothing). It is more likely that somewhere on your website, the img tag is being read through a HTML escaper, ie. changing e.g. "<" to "<". To be able to help you further, it would be helpful if you would tell more about your setup. What modules (and versions of these) do you have installed? Theme? What customisations have you done? Anything else that might be of interest?
Comment #2
japanitrat commentedsubscribe
( D6.9 / language_icons 1.0 / i18n 1.0 )
Comment #3
Miteto commentedI had that issue when building a Zen based subtheme. That was caused by a function (which I borrowed from the forums) implementing the "sliding doors" technique over the primary links.
The culprit was the line
Instead I used decode_entities to wrap "check_plain".
Hope this helps.
Comment #4
Freso commentedMarking this as fixed. Feel free to reopen if this doesn't help and you have more information.
Just out of curiousity though, why not simply remove the
check_plain()instead of adding a call todecode_entities()? As far as I can tell, they do the exact opposite of each other and thus cancels the other one out.Comment #5
dman commentedI believe in both cases above, you need to add 'html'=>TRUE to the link attributes. the l() function escapes html internally unless you tell it otherwise.
Comment #6
Freso commented@dman: This was already being passed. See the line above the
l()call:$link['html'] = TRUE;Comment #8
Anonymous (not verified) commentedThis problem apeared to me also...
I installed this module and it was all ok for a while. Then I flushed all cache with admin module and it started output that. I am making an effort to understand what have I done during that half an hour but i don't remember nothing...
Now, has this issue been more studied?
Comment #9
svergeylen commentedI solve this in Zen whit removing the chack_plain in the file template.php that I had copied into my sub-theme. It works now.
You have to remove the check_plain(...) where you find the rendering of the links for your theme. For me, it was in themes/mytheme/template.php in this function :
and it works...
++
Stéphane
Comment #10
jeeba commentedSorry for resurrecting this zombie post but does removing check_plain this decrease the security on this module? Just wondering, i mean, this is not user created stuff, but maybe in some cases this could be dangerous, anyone agree or disagree?
Comment #11
dman commentedNo security implications.
The img tag that is being inserted in the first place is entirely code-generated. Not from user input.
check_plain security worries is for text/html that may not have been sanitized since a user entered it.
This is entirely code and within the control of the module. Or theme
Comment #12
jeeba commentedThanks dman, so this is a problem of the theme being chosen, so far Zen and AdaptiveTheme have this problems. I just look for the string check_plain() like in #9 (be carefully to delete only the correct one) in the themes templates, Netbeans seem to do it pretty well, maybe this can help someone else.