[plt-scheme] quoted characters in web server

From: Jay McCarthy (jay.mccarthy at gmail.com)
Date: Tue May 3 20:51:32 EDT 2005

While not the answer to your exact question, in a xexpr you can put entities.

For example, `(p "There will be two ampersands, mine and PLT's:" amp
"&"), will give the expected result.

However, if you are trying to allow users to input strings and you
serve them as HTML, you can either build full responses (see doc) or
first parse those strings as XML, then splicing them into your output.
If you do this, keep in mind standard security concerns with regards
to validating and not trusting user input.

If I missed your question, I can try again.


On 5/3/05, Ittai Balaban <balaban at cs.nyu.edu> wrote:
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> Hi.
> Is it possible, using the sexpr based mechanism in a servlet to
> construct responses, to exclude some strings from the usual html
> character quoting? e.g. not map a specific "&" to "&amp;"?
> >From the "feel" of things so far, I get the impression that this is not
> possible.
> Thanks.
> --
> Ittai

Jay McCarthy <jay.mccarthy at gmail.com>

Posted on the users mailing list.