Home / File/ sanitize_template_string.js — svelte Source File

sanitize_template_string.js — svelte Source File

Architecture documentation for sanitize_template_string.js, a javascript file in the svelte codebase. 0 imports, 3 dependents.

File javascript Compiler Parser 3 dependents 1 functions

Entity Profile

Dependency Diagram

graph LR
  4de7d612_97cf_465b_c57c_42e39253c605["sanitize_template_string.js"]
  d04d7971_88df_542d_dd4f_26170ce6f581["utils.js"]
  d04d7971_88df_542d_dd4f_26170ce6f581 --> 4de7d612_97cf_465b_c57c_42e39253c605
  74eddc85_a390_2aab_af5a_ef32b77d5430["utils.js"]
  74eddc85_a390_2aab_af5a_ef32b77d5430 --> 4de7d612_97cf_465b_c57c_42e39253c605
  18e3101f_3e97_34c3_7373_b587af4b78e1["builders.js"]
  18e3101f_3e97_34c3_7373_b587af4b78e1 --> 4de7d612_97cf_465b_c57c_42e39253c605
  style 4de7d612_97cf_465b_c57c_42e39253c605 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

/**
 * @param {string} str
 * @returns {string}
 */
export function sanitize_template_string(str) {
	return str.replace(/(`|\${|\\)/g, '\\$1');
}

Domain

Subdomains

Frequently Asked Questions

What does sanitize_template_string.js do?
sanitize_template_string.js is a source file in the svelte codebase, written in javascript. It belongs to the Compiler domain, Parser subdomain.
What functions are defined in sanitize_template_string.js?
sanitize_template_string.js defines 1 function(s): sanitize_template_string.
What files import sanitize_template_string.js?
sanitize_template_string.js is imported by 3 file(s): builders.js, utils.js, utils.js.
Where is sanitize_template_string.js in the architecture?
sanitize_template_string.js is located at packages/svelte/src/compiler/utils/sanitize_template_string.js (domain: Compiler, subdomain: Parser, directory: packages/svelte/src/compiler/utils).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free