HTML and JS conversion tools

Source: Internet
Author: User

 

<! Doctype html public "-// W3C // dtd html 4.01 Transitional // EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<! -- Saved from url = (0036) http://www.bkye.com/tool/html-js.htm -->
<HTML xmlns = "http://www.w3.org/1999/xhtml"> <HEAD> <TITLE> HTML and JS conversion tools </TITLE>
<META http-equiv = Content-Type content = "text/html; charset = gb2312">
<SCRIPT language = javascript>...
Function change ()...{
Txt. value = "document. writeln ("" + txt. value. replace (// g ,"//"). replace (// g ,"//"). replace (/'/g ,"/'"). replace (/"/g ,"/""). split (''). join (""); document. writeln ("") + "")"
}
 
Function rechange ()...{
Txt. value = txt. value. replace (/document. writeln ("/g ,""). replace (/");/g ,""). replace (// "/g ,"""). replace (// '/g ,"'"). replace (///g ,"/"). replace (///g ,"/")
}
</SCRIPT>

<META content = "MSHTML 6.00.20.0.2954" name = GENERATOR> </HEAD>
<BODY>
<TABLE cellSpacing = 0 cellPadding = 0 width = "100%" border = 0>
<TBODY>
<TR>
<TD align = middle> enter the code to be converted in the text box <BR> <TEXTAREA id = txt rows = 30 cols = 100 value = ""> </TEXTAREA> </ TD> </TR>
<TR>
<TD class = maincontent2 height = 15>
<DIV align = center> <INPUT onclick = change () type = button value = HTML to convert JavaScript name = Submit2> & nbsp;
<INPUT onclick = rechange () type = button value = JS to HTML name = Submit1>
</DIV> </TD> </TR> </TBODY> </TABLE> </BODY> </HTML>

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.