You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This option is to signal `serialize()` that we want to do a straight conversion, without the XSS protection. This options needs to be explicitly set to `true`. HTML characters and JavaScript line terminators will not be escaped. You will have to roll your own.
103
103
104
+
```js
105
+
serialize(obj, {unsafe:true});
106
+
```
107
+
104
108
#### `options.ignoreFunction`
105
109
106
110
This option is to signal `serialize()` that we do not want serialize JavaScript function.
107
111
Just treat function like `JSON.stringify` do, but other features will work as expected.
0 commit comments