unescape() — tailwindcss Function Reference
Architecture documentation for the unescape() function in escape.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 34b0044c_2d6b_fc6e_9b23_05c422d2c036["unescape()"] 67fcef46_defb_2c9b_ab9b_59ae912b91f5["createThemeFn()"] 67fcef46_defb_2c9b_ab9b_59ae912b91f5 -->|calls| 34b0044c_2d6b_fc6e_9b23_05c422d2c036 95cb326e_6b59_0903_0c96_d221fca5c2b1["parseCss()"] 95cb326e_6b59_0903_0c96_d221fca5c2b1 -->|calls| 34b0044c_2d6b_fc6e_9b23_05c422d2c036 c8189e3c_da83_8664_ad35_d7e6af6bc483["getOptions()"] c8189e3c_da83_8664_ad35_d7e6af6bc483 -->|calls| 34b0044c_2d6b_fc6e_9b23_05c422d2c036 7b01a3a8_8970_30d2_152f_715f03247ba2["markUsedVariable()"] 7b01a3a8_8970_30d2_152f_715f03247ba2 -->|calls| 34b0044c_2d6b_fc6e_9b23_05c422d2c036 style 34b0044c_2d6b_fc6e_9b23_05c422d2c036 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/tailwindcss/src/utils/escape.ts lines 75–81
export function unescape(escaped: string) {
return escaped.replace(/\\([\dA-Fa-f]{1,6}[\t\n\f\r ]?|[\S\s])/g, (match) => {
return match.length > 2
? String.fromCodePoint(Number.parseInt(match.slice(1).trim(), 16))
: match[1]
})
}
Domain
Subdomains
Source
Frequently Asked Questions
What does unescape() do?
unescape() is a function in the tailwindcss codebase.
What calls unescape()?
unescape() is called by 4 function(s): createThemeFn, getOptions, markUsedVariable, parseCss.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free