A general note, besides <sanitize> which sounds like a fine choice, a
technique I've used where the form's input might have some wonky
characters in it, including carriage returns, but these need to be
received and processed via a command line, is to use encode():
$rules.encode('base64').replace('\n','')
Then over in receiving python script
Rules = rulesparam.decode('base64')
D.
>Message: 3
>Date: Mon, 13 Jun 2016 17:12:05 -0700
>From: Beginner TI <ruiwang.sz(a)gmail.com>
>To: "galaxy-dev(a)lists.bx.psu.edu" <galaxy-dev(a)lists.bx.psu.edu>
>Subject: [galaxy-dev] how to get raw input from GUI
>Message-ID:
> <CAPNcnp5B8uzQbAHLqA7ak4NMpQZ+CDitvNDg0J9ZS+bS5A06OQ(a)mail.gmail.com>
>Content-Type: text/plain; charset="utf-8"
>
>Hi,
>
>I am working on a wrapper for gatk and including
>
> <repeat name="filters" title="filter names and expressions"
>help="--filterName, --filterExpression">
> <param name="filter_name" type="text" value=""
>title="Filter name to be included in the analysis" />
> <param name="filter_exp" type="data" value=""
>title="Filter
>expression to be included in the analysis" />
> </repeat>
>
>in it, however, when I reference it using
>
>${filter.filter_exp}
>
>it would translate 'FS > 30.0' into XXXFS __gt__ 30.0XXX
>
>is there a way that I could keep the original text string 'FS > 30.0'? I
>did a quick lookup online but didn't see anything in cheetah's user guide
>or other places.
>
>Thanks,
>Rui