first commit
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// ═══════════════════════════════════════════════════════
|
||||
// String Escape
|
||||
// ═══════════════════════════════════════════════════════
|
||||
async function escapeOp(op) {
|
||||
const text = document.getElementById('escInput').value;
|
||||
if (!text) return setStatus('escStatus','error','Enter text.');
|
||||
const d = await apiPost('/api/' + op, { text });
|
||||
if (d.success) { document.getElementById('escOutput').value = d.result; setStatus('escStatus','success', op === 'escape' ? 'Escaped ✓' : 'Unescaped ✓'); }
|
||||
else setStatus('escStatus','error', d.error);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user