strings with quotes in
am 03.04.2007 21:58:09 von Giles
< input type=text name="PageTitle" id="PageTitle"
value="<%=strPageTitle%>" >
How do I "escape" any quotes, accidental carriage returns etc that are
contained within strPageTitle? Do I have to use a series of replace()
functions, or is there a cunning way that makes it OK?
(Using escape(strPageTitle) fills the box with % signs...)
Thanks in advance
Giles
Re: strings with quotes in
am 03.04.2007 22:06:27 von reb01501
Giles wrote:
> < input type=text name="PageTitle" id="PageTitle"
> value="<%=strPageTitle%>" >
>
> How do I "escape" any quotes, accidental carriage returns etc that are
> contained within strPageTitle? Do I have to use a series of replace()
> functions, or is there a cunning way that makes it OK?
>
> (Using escape(strPageTitle) fills the box with % signs...)
>
> Thanks in advance
> Giles
value="<%=server.htmlencode(strPageTitle)%>" >
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.