There seems to be a code somewhere that turns < and > to < ; and > ;, so my link didn't turn into a flag image but instead a long string like this:
- <img src='/drupal/sites/all/modules/languageicons/flags/en.png' class="language-icon" alt="English" width="16" height="12" /> English
I couldn't find anything wrong in languageicons.module, anyone can give me a clue? Do I have any wrong settings?
Thanks.
Comments
Comment #1
aim8604 commentedjust come in to update the problem. I think I know the cause of my problem:
the flag image link <img... is stored in $link[title] and then in the template.php of my theme has this statement: check_plain($title) which rewrites special characters in a plain-text.
Anyway, removing this statement didn't solve anything. I also find the this statement commonly used in other files like theme.inc but it might be too far to delete all of it.
Comment #2
Freso commentedCould you try changing your theme to (an unmodified) Garland and see if the problem is still there?
Comment #3
aim8604 commentedNo. With Garland, it is fine. :(
Comment #4
Freso commentedWell, I'm both glad and sorry to say that the problem isn't with the Language Icons module, then. :)
Are you using a contrib theme or one you've made yourself?
Comment #5
aim8604 commentedYes, I know that it's not the problem of the Language Icons module as well. The theme I used is the contributed one: Amor_azul.
Comment #6
Freso commentedAlright, then let's move the issue there, since that seems to be where the problem lie. :)
If I find the time, I'll try and look at the theme, but I can't (and won't) promise anything. I'm (unfortunately?) quite busy with a lot of things at the moment, so...