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
".
On Oct 22, 4:56 am, "Simon Lewis, UK" <[EMAIL PROTECTED]>
wrote:
> Hi all,
>
> I'm struggling with a really fundamental problem and wondering if
> anyone has any bright ideas...
>
> I need to put the contents of a standard text placeholder into an ASP
> variable so that I can use ASP to manipulate the text. Here's the
> only way I know how:
>
> <%
> my_asp_variable = "<%std_reddot_text_placeholder%>"
> %>
>
> That's perfect until someone puts a value in the placeholder that
> contains a quote character, because when ASP reaches the quote
> character, it thinks the string assignation has ended, and throws an
> error on the remaining contents of the placeholder.
>
> I thought of using the Replace function in various ways...
>
> <%
> my_asp_variable = Replace("<%std_reddot_text_placeholder%>", """",
> Chr(34))
> %>
>
> <%
> my_asp_variable = escape("<%std_reddot_text_placeholder%>")
> %>
>
> ...but the simple truth is that the problem lies in the fact that
> this:
>
> "<%std_reddot_text_placeholder%>"
>
> ...is effectively turned into this:
>
> "here is the text in my placeholder which contains "quoted" text"
>
> I'm sure loads of other people have met this problem... any ideas on
> how to get round it?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---