Skip to content

escape

html 문자열의 엔티티 처리를 합니다.

ts
escape(소스 문자열);
ts
escape("<div>ab&cd</div>"); // "&lt;div&gt;ab&amp;cd&lt;/div&gt;"