Javascript to html converter - The Best
2 posters
Ronie_iz_BaD Forums :: Communities and Networks :: Public software releases :: Programming :: Tutorials
Page 1 of 1
Javascript to html converter - The Best
Things to do :
Php Code:
1. Save this in notepad as Js2html.html
2. Open with browser this document.
3. Paste the javascript code there and click CONVERT To HTML
Php Code:
- Code:
<html>
<head><title>Javascript to HTML</title>
<script type="text/javascript">
function encode(){
var s = document.getElementById('source');
var txt = s.value;
txt = txt.replace(/[&]/g,'&');
txt = txt.replace(/[<]/g,'<');
txt = txt.replace(/[>]/g,'>');
s.value = txt;
}
</script>
</head>
<body>
<button onclick="encode()">Convert to HTML</button><br />
<textarea id="source" style="width:90%;height:400px"></textarea>
</body></html>
1. Save this in notepad as Js2html.html
2. Open with browser this document.
3. Paste the javascript code there and click CONVERT To HTML
hotidiot- Subscriber
- Posts : 200
Points : 9206
Reputation : 11
Join date : 2009-12-04
Re: Javascript to html converter - The Best
Please excuse me, I forgot to mention
hotidiot- Subscriber
- Posts : 200
Points : 9206
Reputation : 11
Join date : 2009-12-04
Ronie_iz_BaD Forums :: Communities and Networks :: Public software releases :: Programming :: Tutorials
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum