Great!  That seems to be the answer -- thanks so much.  I hadn't used
render tags before, but I tried pasting your code into a template and
it worked.  Actually, in my case, it's not the headline that I need to
put into a variable... I tried replacing "CurrentPage.Headline" with
"CurrentPage.txt_body" and that failed, BUT searching the web for
"reddot render tags" I found this syntax, which does do the trick:

var = "<%!!
Escape:HtmlEncode(Context:CurrentPage.Elements.GetElement(txt_body).Value) !!
%>"

Thanks again for suggesting render tags.  A whole new area for me to
explore :o)


On Oct 23, 4:40 pm, Chris Peoples <[EMAIL PROTECTED]> wrote:
> Have you tried using render tags with the escape function?  So, rather
> than the placeholder, it would be:
>
> <%
> var = "<%!! Escape:HtmlEncode(Context:CurrentPage.Headline) !!%>"
> %>
>
> I haven't tried it before, but HTMLEncode should convert quotes to
> &quot;.
--~--~---------~--~----~------------~-------~--~----~
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