»
EnglishFrenchVietnamese

Print - Code Master - JavaScriptBank.com

Full version: jsB@nk » Form » Code Master
URL: https://www.javascriptbank.com/code-master-index.html

Code Master © JavaScriptBank.comThis JavaScript is useful for code examples on your webpages.

Full version: jsB@nk » Form » Code Master
URL: https://www.javascriptbank.com/code-master-index.html



JavaScript
<SCRIPT type=text/javascript>function convert() {var data = document.forms[0].elements[0].value;var out = data.replace(/</gi,"&amp;lt;").replace(/>/gi,"&amp;gt;");document.getElementById("output").innerHTML = out;}</SCRIPT><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<FORM onsubmit="return false"><TEXTAREA rows=6 cols=30></TEXTAREA><BR><BUTTON onclick=convert()>Go!</BUTTON><P><B>Output:</B> <DIV id=output></DIV></FORM><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->