first commit
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// ═══════════════════════════════════════════════════════
|
||||
// HTML Entities
|
||||
// ═══════════════════════════════════════════════════════
|
||||
async function htmlEntOp(op) {
|
||||
const text = document.getElementById('htmlEntInput').value;
|
||||
if (!text) return setStatus('htmlEntStatus','error','Enter text.');
|
||||
const d = await apiPost('/api/html/' + op, { text });
|
||||
if (d.success) { document.getElementById('htmlEntOutput').value = d.result; setStatus('htmlEntStatus','success', op === 'encode' ? 'Encoded ✓' : 'Decoded ✓'); }
|
||||
else setStatus('htmlEntStatus','error', d.error);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user