Skip to main content

Arguments

string
required
String ที่จะ escape. function อ่าน argument นี้ด้วย string type checking.

Returns

string
Escaped JSON string content โดยไม่มี opening และ closing quote. Quotes, backslashes, common control characters และ bytes below 0x20 จะถูก escape.

ตัวอย่าง

Escape string สำหรับด้านในของ JSON string โดยไม่เพิ่ม surrounding quotes.