2016-10-18 08:18:32 +00:00
|
|
|
caption: stringify
|
|
|
|
created: 20161017153038029
|
2017-10-31 17:25:21 +00:00
|
|
|
modified: 20171029155143797
|
2016-10-18 08:18:32 +00:00
|
|
|
op-input: a [[selection of titles|Title Selection]]
|
|
|
|
op-output: the input with ~JavaScript string encodings applied
|
|
|
|
op-parameter:
|
|
|
|
op-parameter-name:
|
|
|
|
op-purpose: apply ~JavaScript string encoding to a string
|
|
|
|
tags: [[Filter Operators]] [[String Operators]]
|
|
|
|
title: stringify Operator
|
|
|
|
type: text/vnd.tiddlywiki
|
|
|
|
from-version: 5.1.14
|
|
|
|
|
2017-10-31 17:25:21 +00:00
|
|
|
The following substitutions are made:
|
|
|
|
|
|
|
|
|!Character |!Replacement |
|
|
|
|
|`\` |`\\` |
|
|
|
|
|`"` |`\\` |
|
|
|
|
|`\r` (carriage return) |`\\r` |
|
|
|
|
|`\n` (line feed) |`\\n` |
|
|
|
|
|`\x08` (backspace) |`\\b` |
|
|
|
|
|`\x0c` (form feed) |`\\f` |
|
|
|
|
|`\t` (tab) |`\\t` |
|
|
|
|
|Characters from 0x00 to 0x1f and characters from 0x80 to 0xffff |`\\u####` where #### is four hex digits |
|
|
|
|
|
|
|
|
Also see the [[jsonstringify Operator]].
|
|
|
|
|
2016-10-18 08:18:32 +00:00
|
|
|
<<.operator-examples "stringify">>
|