Dom
Utilities for HTML element.
Methods
static htmlEncode(text): string (opens in a new tab)
Utils.escapeHtml()로 이스케이프한다. 따옴표(" ')도 이스케이프하므로 속성 값 안에서도 안전하다. 기존 결과와 맞추기 위해 non-breaking space(U+00A0)는 로 바꾼다.
| Parameter | Type |
|---|---|
| text | string (opens in a new tab) |