apply-taint. Applying data transformations

^apply-taint[text]   [3.4.1]
^apply-taint[transformation type][text]   [3.4.1]

Operator apply-taint applies inplace transformation to all tainted parts of the string. Parts within undefined transformation type will be processed using specified transformation type (as-is by default).

Example
Example, illustrating difference between ^taint and ^untaint.<br />
$s[?   ^taint[?]   ^taint[uri][?]   ^taint[file-spec][?]]
<pre>^apply-taint[uri][$s]
^apply-taint[uri][^taint[as-is][$s]]
^apply-taint[uri][^untaint{$s}]
^apply-taint[uri][^untaint[uri]{$s}]</pre>

Output:
?    %3F    %3F    _3F
?    ?    ?    ?
?    ?    %3F    _3F
?    %3F    %3F    _3F 





Copyright © 1997–2025 Art. Lebedev Studio | http://www.artlebedev.com Last updated: 07.04.2024