- ตัวดำเนินการ
-
เรียนรู้
ศูนย์การเรียนรู้ Python ตัวอย่างที่รันได้, NumPy, pandas และอื่น ๆ ศูนย์การเรียนรู้ C และ C++ พอยน์เตอร์ หน่วยความจำ STL และ C++ สมัยใหม่ ศูนย์การเรียนรู้ C#พื้นฐาน C#, OOP, LINQ, async และแบบฝึกหัด .NET อัลกอริทึม Python การค้นหา การเรียงลำดับ รีเคอร์ชัน และภาพจำลอง O(n) อัลกอริทึม C และ C++ เปรียบเทียบการเขียนด้วย C และ C++
- โจทย์
Encoders and decoders
String Escape / Unescape
Escape special characters so text can be pasted safely into code, queries or markup, or reverse it.
- Runs in your browser
- Instant results
- Free, no sign-up
Loading the tool…
How to use the String Escape / Unescape
- Choose the target format.
- Choose Escape or Unescape.
- Paste text and copy the result.
Frequently asked questions
When do I need to escape strings?
When text with quotes, backslashes or line breaks goes inside a string literal, SQL query, HTML or regex.
Is SQL escaping enough to prevent injection?
No. Always use parameterized queries in applications; escaping here is for quick manual work.
What does regex escaping do?
It adds backslashes before characters like . * ? ( ) so they match literally.
ฝึก Python ด้วยโจทย์เขียนโค้ด
แก้โจทย์จริงใน editor นี้: รันทดสอบตัวอย่าง ส่งคำตอบ และรับรีวิวโค้ดจาก AI