Luis Mendes <
[email protected]> wrote:
My attempt to string map [ to the corresponding html code have failed,
like:
string map " {[} {[} " $descr
string map { "[" "[" } $descr
Also tried to escape the [, but to no success.
How can it be done?
Although your followup implies you no longer need the answer to this,
the way "to do it" is to feed a proper list to string map:
string map [list \[ "["] $descr
It is usually more difficult to try to create lists using "" or {} than
to just let the [list] command do so. In either of the first cases,
you have to have a very good internal understanding of what to quote
(and not to quote) to make the list correct. Using [list], it will
handle those details for you automatically.
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)