[prev in list] [next in list] [prev in thread] [next in thread]
List: perl-win32-users
Subject: Re: HTML question
From: Carl Jolley <cjolley () iac ! net>
Date: 2000-10-31 18:55:05
[Download RAW message or body]
On Tue, 31 Oct 2000, John Deighan wrote:
> This is an HTML question. I would like to include a double quote character
> in an attribute, and nothing I've tried works (doubling the quote mark,
> preceding it with a backslash, using %25). Specifically, I want to allow
> users to enter strings in an edit field in a form, then later allow them to
> see the string in an edit field, allowing them to edit the string, without
> disallowing quote characters. When I display the field with the previously
> entered string already there, I use something like:
>
> <input type=text value="$string">
>
> but if $string contains a quote character (i.e. ") the displayed string is
> truncated at that point because, after interpolation, you get something like:
>
> <input type=text value="this contains a "quote" character">
>
> Is there any way to include a quote mark in the value of an attribute?
>
Sure, just refer to the quote as required: "
**** cjolley@iac.net <Carl Jolley>
**** All opinions are my own and not necessarily those of my employer ****
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic