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
Copy file name to clipboardExpand all lines: @mizu/http/README.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -220,3 +220,8 @@ Alias for `.consume[json]`.
220
220
### `.xml[boolean]`
221
221
222
222
Alias for `.consume[xml]`.
223
+
224
+
### `.swap[boolean]`
225
+
226
+
Consume body using [`response.text()`](https://developer.mozilla.org/docs/Web/API/Response/text) and set target's [`outerHTML`](https://developer.mozilla.org/docs/Web/API/Element/outerHTML). This modifier takes precedence over [`.consume`](#consume) modifier and makes it
227
+
effectless, although if `.consume[text]` is set then swapped content will be escaped.
Copy file name to clipboardExpand all lines: @mizu/http/mod.html
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -232,4 +232,9 @@
232
232
<mizu-modifier#modifiername="xml">
233
233
Alias for <code>.consume[xml]</code>.
234
234
</mizu-modifier>
235
+
<mizu-variable#modifiername="swap">
236
+
Consume body using <ahref="https://developer.mozilla.org/docs/Web/API/Response/text"><code>response.text()</code></a> and set target's <ahref="https://developer.mozilla.org/docs/Web/API/Element/outerHTML"><var>outerHTML</var></a>. This modifier takes precedence over the <a
237
+
href="#consume"
238
+
><code>.consume</code></a> modifier and makes it effectless, although if <code>.consume[text]</code> is set swapped content will be escaped.
0 commit comments