Hi all.
I have two things...
1) Unquoting a variable.
2) By extension, how would I go about removing all double quotes from an array containing HTML ?
Any ideas?
I have two things...
1) Unquoting a variable.
You would think this is easy with %@UNQUOTE ...
Example:
A variable containing this (extracted form a website) :
coderes=" <small>Version : <code>2.20.2.101</code> / January 12th 2020</small>"
Normally, one would simply use %@UNQUOTE[%coderes], but then I get this:
> echo %@unquote[%coderes]
TCC: (Sys) The process cannot access the file because it is being used by another process.
I assume this has to do with a temporary file.
Other times, I get a syntax error doing echo %coderes because it contains double quotes.
So I'm looking for an easy (and painless) way to remove all double quotes.
2) By extension, how would I go about removing all double quotes from an array containing HTML ?
Example:
SETARRAY code[100]
ECHO %@EXECARRAY[code,TYPE Free Software Downloads and Reviews - Filepuma.com] >& NUL
ECHO %code[50]
TCC: (Sys) The system cannot find the file specified.
""
> ECHO "%code[50]"
" <li><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a></li>"
It would be great if I could get rid of all the double quotes.
As far as I know, TPIPE has no such filter (and it works on files, not arrays)...
Any ideas?