We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d424504 commit f2d223fCopy full SHA for f2d223f
src/components/CURL.astro
@@ -38,7 +38,7 @@ if (json) {
38
const jsonLines = JSON.stringify(json, null, "\t\t").split("\n");
39
jsonLines[jsonLines.length - 1] = "\t" + jsonLines[jsonLines.length - 1];
40
41
- lines.push(`\t--json '${jsonLines.join("\n")}'`);
+ lines.push(`\t--json '${jsonLines.join("\n").replaceAll("'", "'\\''")}'`);
42
}
43
44
if (form) {
src/content/docs/style-guide/components/curl.mdx
@@ -21,7 +21,7 @@ import { CURL } from "~/components";
21
url="https://httpbin.org/anything"
22
method="POST"
23
json={{
24
- key: "value",
+ key: "va'l'ue",
25
}}
26
code={{
27
mark: "value"
0 commit comments