On 6/22/06, Shervin Asgari <[EMAIL PROTECTED]> wrote:
I did what Dave said here, and changed my rss.vm file to <title>$utilities.textToHTML($utilities.removeHTML($website.name))</title> instead of this <title>$utilities.textToHTML($website.name)</title>But there is another huge problem right now. The rss feed takes all the text, even entities which it shouldn't and converting them. For instance if you look at this text. The title is outputted correctly, but in the description, what it should be is & but the '&' is removed. The same goes for <div class which should have been read <div class and the href=" which should be read <href="....."> <title>Nachspiel & Beat for beat syndromet!</title> <description> &nbsp; &nbsp; SOME TEXT SOME TEXT...<div class="readMore"><a href="http://www.sa.no/blog/page/40?entry=260">Les mer</a></div> </description> I don't know if your trunk version does this, but I am guessing not. We are however still using Roller 2.1 and with the code Dave provided, it still doesn't quite do the trick. I hope someone can help
That looks pretty bad, but I haven't noticed this problem myself. I wonder what is going wrong on your system. Take a look at weblog.vm and the #showEntryDescription() macro. It uses $utilities.textToXML() to escape the description. You might want to try using $utilities.escapeHTML() there to see what happens, it might do a better job of escaping. - Dave
