Skip to main content

escapeCSS

tw5-typed


tw5-typed / modules/utils/escapecss / escapeCSS

Function: escapeCSS()

escapeCSS(value): (ident) => string

Defined in: src/modules/utils/escapecss.d.ts:7

The onstalled event handler of the element

Parameters

value

string

Returns

The escaped string

(ident): string

The CSS.escape() static method returns a string containing the escaped string passed as parameter, mostly for use as part of a CSS selector.

MDN Reference

Parameters

ident

string

Returns

string

Description

为在 CSS 选择器或标识符中使用而转义字符串