The current version of the module places special HTML characters in the alt tag of the images. Besides the fact that I find that the code for a smiley should be in the title tag and the description in the alt tag (usability), these characters cause the page to be invalid HTML. I suggest using htmlspecialchars() in PHP to fill the alt tags with the right code and use some JS like this to turn it back into the actual code:

var smiley = ' ' + this.alt.replace(new Array('$amp;', '&quot;', '&#039;', '&lt;', '&gt;'), new Array('&','"','\'','<','>')) + ' ';

(replacement code for line 30 in smileys.js)

I'm just starting to learn a bit more about JS, so I hope this code is efficient enough.

Comments

stokito’s picture

Status: Active » Closed (won't fix)
xano’s picture

Status: Closed (won't fix) » Postponed (maintainer needs more info)

It's not very polite to mark something as a won't fix without even giving an explanation.

Gurpartap Singh’s picture

< and > are already handled when adding new packs. I am not sure if the other characters you report would make the page HTML invalid. Will need to investigate in this.