Several ways to do it.  I'm a bit busy so you will have to figure out the
missing pieces:

new StringElement().setFilterState(false).addElement("It's simple
").setFilterState(true).addElement("& easy");

Or better but probably not chainable:

s = new StringElement()
filter = new CharacterFilter("&");
s.setFilter(filter);
s.addElement("It's simple & easy");

These are just off the top of my head, they probably need more work to
function.

----- Original Message -----
From: Marcus Weibull <[EMAIL PROTECTED]>
To: 'ECS' <[EMAIL PROTECTED]>
Sent: Tuesday, March 28, 2000 8:56 AM
Subject: RE: Quote beeing filtered


> Ok, but how do I add "It's simple & easy"? I need filtering on this
element.
> Why are quotes beeing filtered?
>
> /Marcus
>
>
> -----Original Message-----
> From: John McNally [mailto:[EMAIL PROTECTED]]
> Sent: den 28 mars 2000 18:38
> To: ECS
> Subject: Re: Quote beeing filtered
>
>
> Either turn filtering off in ecs.properties or if you need filtering in
most
> circumstances turn it off for the element you are adding the quote to.
>
> new StringElement().setFilterState(false).addElement("It's easy")
>
> ----- Original Message -----
> From: Marcus Weibull <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, March 28, 2000 4:15 AM
> Subject: Quote beeing filtered
>
>
> > Hello,
> >
> > We have a lille problem: Quotation marks ' are being filtered to &#8217;
> >
> > Anyone who knows about this?
> >
> > Best regards,
> >
> > Marcus
> >
> > ****************************************
> > Marcus Weibull, Product Developer
> >
> > Aspiro AB (publ.)
> >
> > Office: Gr�br�dersgatan 2, Malm�
> > P.O. Box 118, SE - 201 21 Malm�, Sweden
> > Phone: + 46 - 709 - 91 80 20
> > Fax: + 46 - 40 - 57 97 71
> > E-mail: mailto:[EMAIL PROTECTED]
> > mailto:[EMAIL PROTECTED]
> > (accessible through mobile and Internet)
> > WWW: http://www.aspiro.com
> > ****************************************
> >
> >
> >
> > --
> > ------------------------------------------------------------
> > To subscribe:        [EMAIL PROTECTED]
> > To unsubscribe:      [EMAIL PROTECTED]
> > Archives and Other:  <http://java.apache.org/main/mail.html>
> > Problems?:           [EMAIL PROTECTED]
>
>
>
> --
> ------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Archives and Other:  <http://java.apache.org/main/mail.html>
> Problems?:           [EMAIL PROTECTED]
>
>
> --
> ------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Archives and Other:  <http://java.apache.org/main/mail.html>
> Problems?:           [EMAIL PROTECTED]



--
------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to