Quote:
Originally Posted by ZeChico
I have:
Code:
if (m.topic) {
try {
m.topic = decodeURIComponent(m.topic);
} catch (e) {
}
}
if (m.topic && m.topic.length > 80) {
m.topic = m.topic.substr(0, 79) + '…';
}
First it decodes, than it cuts it, I see no problems.
|
You're right ... sorry. I have really seen at one point undecoded text but now that I have tried again with your files everything looks OK.
Anyway, I still think that the same result would be with just one line I suggested to you

I use it and I have no problem.