Forum OpenACS Q&A: Re: escaping strings

Collapse
2: Re: escaping strings (response to 1)
Posted by Peter Alberer on
why don´t you just use single quotes (') in your html? this way you need not escape anything. see http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.2.2
Collapse
3: Re: escaping strings (response to 2)
Posted by Tilmann Singer on
Ideally you shouldn't construct html in the tcl code in the first place. If you follow this advice, the issue becomes less important because you have to build much fewer strings with quotes in them.

tcl:

set list_url "file-list?[export_vars path]"

adp:

<a href="@list_url@">test</a>