Javascript to html converter - The Best

Go down

Javascript to html converter - The Best

Post by hotidiot on Thu Mar 18, 2010 5:44 pm

Things to do :

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



avatar
hotidiot
Subscriber
Subscriber

Posts : 200
Points : 7013
Reputation : 11
Join date : 2009-12-04

View user profile

Back to top Go down

Re: Javascript to html converter - The Best

Post by Admin on Thu Mar 18, 2010 6:05 pm

Yes, Its a cool script, found here CLICK HERE

_________________

My mind tries to solve my own mind, and I don't know what's the big deal - Ronie
avatar
Admin
Admin
Admin

Posts : 644
Points : 9650
Reputation : 62
Age : 34
Location : India (New Delhi)
Join date : 2009-11-30

View user profile http://www.nlpy.net/linkman/links.php

Back to top Go down

Re: Javascript to html converter - The Best

Post by hotidiot on Thu Mar 18, 2010 8:03 pm

Please excuse me, I forgot to mention Smile



avatar
hotidiot
Subscriber
Subscriber

Posts : 200
Points : 7013
Reputation : 11
Join date : 2009-12-04

View user profile

Back to top Go down

Re: Javascript to html converter - The Best

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum