Hi Kristaps,

We had the same issue getting them into c# strings, in the end we went
for:

string descr = @"<%!!
Escape:HtmlEncode(Context:CurrentPage.Elements.GetElement(String:text).Value) !!
%>";

which seems to work well for us, we do of course have to unencode it
later.

Rich

On Nov 4, 11:58 am, Kristaps Karlsons <[email protected]> wrote:
> Hi, list.
>
> I'm currently developing rss feed for our homepage. The problem we're having
> is - we need to replace description to show images properly in rss.
>
> Currently I'm stuck here:
> <%
> string descr; // define string descr outside of loop
> %>
>
> <!IoRangeList><!IoRangeNoRedDotMode><!IoRangeRedDotMode><%list_nextLevel%><
> !/IoRangeRedDotMode><!/IoRangeNoRedDotMode>
> <item>
>     <title><![CDATA[<%headline%>]]></title>
>     <link>http://www.example.com<%list_nextLevel%></link>
>     <pubDate><%info_timedate_created%> <%= timeZone %></pubDate>
>     <description><![CDATA[<%
>         descr = @"<%text%>"; // exception
>     %>]]></description>
> </item>
> <!/IoRangeList>
>
> The problem is - <%text%> is multiline text with unescaped single quotes
> (e.g. <a href="url">text</a>).
>
> Best regards,
> Kristaps

-- 
You received this message because you are subscribed to the Google Groups 
"RedDot CMS Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/reddot-cms-users?hl=en.

Reply via email to