[Tb] Confused about ^encode

From: Lee Phillips <lee>
Date: Wed Jul 27 2005 - 16:11:05 EDT

I have a feeling that this has been touched on before, but
something might have changed in v. 2.5....

I'm using ^encode in a template to generate the <description>
parts of an rss feed. This is so I can have html in the feed,
and, as the manual says, supposedly when I use ^encode

                        <b> becomes &lt;b&gt;
                        
which is what you need to escape the html inside the xml in your
feed.

However, what is actually exported is

                         &amp;lt;b&amp;gt;

with the result that, at least in some aggregators
(NetNewsWire), the reader sees the tags rather than their
rendering as html.

I have fixed this by using CDATA rather than encoding, which is
probably more robust anyway, and I'll stick to that. But I would
like to know if

(1) I am confused and doing something wrong;

(2) The manual is wrong and Tinderbox is behaving as intended; or

(3) This is a bug.

                         
Received on Wed Jul 27 16:10:57 2005

This archive was generated by hypermail 2.1.8 : Wed Dec 14 2005 - 10:45:38 EST