With 4.6.0, with article module, I have
img src="misc/xml.png" alt="XML Feed" \
instead of the image

Changing filters does not improve anything.

Same thing in stories if I add the print module
I have img src="1" alt="" in text

Comments

syawillim’s picture

I have the same problem with banner.module and think it is also showing in event.module with the next and previous links.

Have already posted twice with no response....would really appreciate so help. The problem can be seen at www.avondescent.com.au.

matbintang’s picture

Somehow the code in the module isn't being converted right. Here's what the browser see.

<a href="/?q=article/feed">&lt;img src=&quot;misc/xml.png&quot; alt=&quot;XML Feed&quot; \&gt;</a>

And here's what the module has.

if (variable_get('article_recent_box_enable', 1)) {
        $body = theme('box', variable_get('article_recent_box_title', t('Latest Articles')), module_invoke('node',
 'title_list', article_get_latest(variable_get('article_recent_display', '5')), '') . theme('more_info', l("<img s
rc=\"misc/xml.png\" alt=\"XML Feed\" \>", 'article/feed')));
      }

Now, if only someone can tell me how to fix it.

Steven’s picture

You need to set l()'s $html parameter to true. See http://drupaldocs.org/l.

--
If you have a problem, please search before posting a question.

syawillim’s picture

Thank you!
I searched all over but couldn't find an answer....knew it had to be something simple.

infocoach’s picture

Many thanks!!!

I added
, array(), NULL, NULL, FALSE, TRUE
in the l() function in article.module and print.module
and everything works perfect!

Drupal rules!!!!

dicryptor’s picture

This is my l() function for the article module in case nybody needs it:-

l(\"<img src=\"misc/xml.png\" alt=\"XML Feed\" \>\", \'article/feed\', array(), NULL, NULL, FALSE, TRUE)

PS please remove the backslashes for article/feed