You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Christian Cryder <ch...@enhydra.org> on 2001/09/08 01:13:33 UTC

Quotes in tokens/values

Let's say I'm trying to use a simple replacefilter...how do I specify a
token or value that has a quote in it? For instance, if I wanted to find a
token of 'She said "Hi There"', do I need to represent the " as &quot; or
something else?

Christian
------------------------------------------------
Christian Cryder [christianc@enhydra.org]
Barracuda - MVC Component Framework for Webapps
http://barracuda.enhydra.org
------------------------------------------------
        "What a great time to be a Geek"


Re: Quotes in tokens/values

Posted by Diane Holt <ho...@yahoo.com>.
--- Christian Cryder <ch...@enhydra.org> wrote:
> Let's say I'm trying to use a simple replacefilter...how do I specify a
> token or value that has a quote in it? For instance, if I wanted to find
> a token of 'She said "Hi There"', do I need to represent the " as &quot;
> or something else?

Just use single-quotes around the token string (and the value string, if
you want to include double-quotes in that as well). Eg:
      <replacefilter
        token='"aples"'
        value='"apples"'/>

Diane

=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com