Best Parse HTML Tool


Alat Parse HTML  oleh  WanGrounD.My.ID

  • Konversi & menjadi &
  • Konversi < menjadi &lt;
  • Konversi > menjadi &gt;
  • Konversi " menjadi &quot;
  • Konversi ' menjadi &#039;

code{font-family:Consolas,Monaco,’Andale Mono’,’Courier New’,Courier,Monospace;color:#2a5ead;font-size:13px;padding:2px 4px;color:#d14;}
#codes{font:13px ‘Courier New’,Monospace;border:1px solid #CCCCCC;width:550px;height:250px;margin:0 auto;display:block;background-color:#f2f2f2;color:#333;padding:15px;}
.button-group{margin:0 auto 0;text-align:center}
button,button[disabled]:active{border: none;padding: 5px 12px;color: #fff;background-color: #0ea6d8;cursor: pointer;font-size: 13px;margin: 0 10px;line-height: 23px;border-radius: 3px;transition: all 0.3s ease-in-out;}
button:active{background:#3f92e1;}
button[disabled],button[disabled]:active{background:#3f92e1;}
#opt1,#opt2,#opt3,#opt4,#opt5{display:inline-block;margin-right:10px;}

function cdClear() {
var wtarea = document.getElementById(‘codes’);
wtarea.value = ”;
wtarea.focus();
document.getElementById(‘convert’).disabled = false;
}
function cdConvert() {
var ctarea = document.getElementById(‘codes’),
cv = ctarea.value,
opt1 = document.getElementById(‘opt1’),
opt2 = document.getElementById(‘opt2’),
opt3 = document.getElementById(‘opt3’),
opt4 = document.getElementById(‘opt4’),
opt5 = document.getElementById(‘opt5’);
cv = cv.replace(/t/g, ” “);
if (opt1.checked) cv = cv.replace(/&/g, “&”);
if (opt2.checked) cv = cv.replace(//g, “>”);
if (opt4.checked) cv = cv.replace(/”/g, “"”);
if (opt5.checked) cv = cv.replace(/’/g, “'”);
ctarea.value = cv;
ctarea.focus();
ctarea.select();
};


(adsbygoogle = window.adsbygoogle || []).push({});