Apostrophes, ampersands and less-than/greater-than signs in banner title and description display as HTML code rather than the symbol.
I found an explanation in a Google search, though I am not familiar enough to determine its validity:
Source: http://remmirath-en.blogspot.com/2011/09/marinelli-3-drupal-7-html-entit...
"!variable: Inserted as is. Use this for text that has already been sanitized.
@variable: Escaped to HTML using check_plain(). Use this for anything displayed on a page on the site.
The generation of banner title and description string is there made with the @ parameter. Unfortunately somewhere else in the code a further check_plain() call is made on the same strings. This second application of check_plain() function simply converts the symbols into HTML entities and this is the cause of the issue."
This link provides a fix as well that, again due to my lack of familiarity with the code, I have not tried myself:
"My solution was to replace the @ parameter with the ! one in t() function calls into marinelli_banner_markups()
This function in marinelli/logics/banners.inc
Here you are the code snippets:
'alt' => t('!image_desc', array('!image_desc'=>$banner['image_description'])),
'title' => t('!image_title', array('!image_title'=>$banner['image_title'])),
...
'longdesc' => t('!image_desc', array('!image_desc'=>$banner['image_description']))
"
Comments
Comment #1
hatcat CreditAttribution: hatcat commentedI'm having the same issue with the titles of articles from my feeds. Thanks for the info.
Comment #2
jonboykayaks CreditAttribution: jonboykayaks commentedThanks that fix on the website worked for me!
Comment #3
jonboykayaks CreditAttribution: jonboykayaks commentedComment #4
jonboykayaks CreditAttribution: jonboykayaks commentedComment #5
jeramy CreditAttribution: jeramy commentedI have now tested the fix as well and it does seem to correct the issue.
Comment #6
TheRobBrennan CreditAttribution: TheRobBrennan commentedThank you! This worked for me, too.
Comment #7
Dade916 CreditAttribution: Dade916 commentedThanks, the fix worked for me too.
Comment #8
mgiffordCould someone develop a proper patch for this?