sanitize_template_string() — svelte Function Reference
Architecture documentation for the sanitize_template_string() function in sanitize_template_string.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD f58b3d9a_75d2_270c_fa96_1df0cdee1d8f["sanitize_template_string()"] 4de7d612_97cf_465b_c57c_42e39253c605["sanitize_template_string.js"] f58b3d9a_75d2_270c_fa96_1df0cdee1d8f -->|defined in| 4de7d612_97cf_465b_c57c_42e39253c605 f3280f06_553d_66c3_8ca2_c3c36dcdda64["build_template_chunk()"] f3280f06_553d_66c3_8ca2_c3c36dcdda64 -->|calls| f58b3d9a_75d2_270c_fa96_1df0cdee1d8f 4ec029f0_bbf8_66de_0dbf_d15eef3e10a0["process_children()"] 4ec029f0_bbf8_66de_0dbf_d15eef3e10a0 -->|calls| f58b3d9a_75d2_270c_fa96_1df0cdee1d8f 00a00e1a_c250_278a_46b4_528740b0cca2["quasi()"] 00a00e1a_c250_278a_46b4_528740b0cca2 -->|calls| f58b3d9a_75d2_270c_fa96_1df0cdee1d8f style f58b3d9a_75d2_270c_fa96_1df0cdee1d8f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/compiler/utils/sanitize_template_string.js lines 5–7
export function sanitize_template_string(str) {
return str.replace(/(`|\${|\\)/g, '\\$1');
}
Domain
Subdomains
Source
Frequently Asked Questions
What does sanitize_template_string() do?
sanitize_template_string() is a function in the svelte codebase, defined in packages/svelte/src/compiler/utils/sanitize_template_string.js.
Where is sanitize_template_string() defined?
sanitize_template_string() is defined in packages/svelte/src/compiler/utils/sanitize_template_string.js at line 5.
What calls sanitize_template_string()?
sanitize_template_string() is called by 3 function(s): build_template_chunk, process_children, quasi.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free