Posts: 151
Threads: 90
Joined: Aug 2014
http://escape.online-toolz.com/tools/ja ... ctions.php
Can implement the functionality of the JavaScript in QM?
to implement this feature in QM?
Posts: 12,140
Threads: 142
Joined: Dec 2002
Member function
str.UnescapeJavascript
function$
;Replaces JavaScript string escape sequences.
;Returns self.
if(!this.len) ret
REPLACERX r.frepl=&sub.Callback
replacerx("\\([\\'''rntbfv]|u\w\w\w\w)" r)
ret this
#sub Callback
function# REPLACERXCB&x
str& s=x.match
sel s[1]
,case 34 s="''"
,case 39 s="'"
,case '\' s="\"
,case 'r' s="[13]"
,case 'n' s="[10]"
,case 't' s="[9]"
,case 'b' s="[8]"
,case 'f' s="[12]"
,case 'v' s="[11]"
,case 'u' _i=strtoul(s+2 0 16); lpstr t=+&_i; s.ansi(t)
Macro
Macro2561
out
str s="a '' ' \ [] [8][9][11][12] ąﻟ"
out s
out "---------"
s.EscapeJavascript(2)
out s
out "---------"
s.UnescapeJavascript
out s
EscapeJavascript:
support the same functionality as Fiddler on the QM?
Posts: 151
Threads: 90
Joined: Aug 2014
Thank you very much.

Has solved all the problems.