Java to HTML
<div dir="ltr" style="text-align: left;" trbidi="on">
<script language="javascript" type="text/javascript">
/* <![CDATA[ */
function converttext(){
inputtext = document.getElementById('codeconverter').inputtext.value;
out = inputtext.replace(/\&/g, '&')
out = out.replace(/\</g, '<')
out = out.replace(/\>/g, '>')
out = out.replace(/\"/g, '"')
out = out.replace(/\'/g, ''')
out = out.replace(/\|/g, '|')
out = '<div style="BORDER: #cccccc 1px dashed; PADDING: 5px; WIDTH: 95%; BACKGROUND: #f0f0f0; COLOR: #000000; FONT-SIZE: 12px; OVERFLOW: auto; height:auto">
<pre>' + out + '</pre>
</div>
'
document.getElementById('codeconverter').outputtext.value = out;
}
/* ]]> */
</script>
<br />
<form id="codeconverter">
Input Text:<br />
<textarea cols="80" name="inputtext" rows="20"></textarea><br />
<input onclick="javascript:converttext();" style="margin-top: 5px;" type="button" value="Convert" /><br />
Output Text:<br />
<textarea cols="80" name="outputtext" rows="20"></textarea><br /></form>
</div>
0 Komentar
-Berkomentarlah yang baik dan rapi.
-Menggunakan link aktif akan dihapus.