Convert HTML code to ASP code

Source: Internet
Author: User


HTML <SPAN class = "wp_keywordlink"> code </span> converted to ASP code




convert HTML code to ASP code




function htmlphp () {
var input = document. htphp. input. value;
output = "response. write/"";
for (var c = 0; C If (input. charat (c) = "/N" | input. charat (c) = "/R") {
output + = "/" & vbcrlf ";
If (C! = Input. length-1) Output + = "/n response. write/"";
C ++;
}< br> else {
If (input. charat (c) = "/"); ") {
output + = "///"";
}< br> else {
If (input. charat (c) = "//") {
output + = "//";
}

Else {
Output + = input. charat (C );
If (C = input. Length-1) Output + = "/" & vbcrlf ";
}
}
}

}

 

 

Info2 = "/n response. Write/"/"/N" +

"/%/> ";

Document. htphp. Output. value = output + info2;
}

</SCRIPT>

<Tbody>
<Tr>
<TD>
<P align = center>
<Table bordercolor = blue cellspacing = 0 cellpadding = 0 width = "100%"
Border = 0> <tbody>
<Tr>
<TD>
& Lt; table width = "100%"
Border = 0 cellpadding = 0 cellspacing = 0 bgcolor = "# f7f7f7">
<Tbody>
<Tr>
<TD align = middle>
<Center>
<Form name = htphp>
<Table cellspacing = 2 cellpadding = 2 width = "100%" border = 0>
<Tbody>
<Tr>
<TD align = middle> paste HTML code in the upper box </TD> </tr> </tbody> </table>
<Tbody>
<Tr>
<TD align = middle> <textarea name = input rows = 15 wrap = Virtual Cols = 68> </textarea>
</TD> </tr>
<Tr>
<TD align = middle> <br> <font class = content> the & nbsp; ASP
Code </font> </TD> </tr>
<Tr>
<TD align = middle> <textarea name = output rows = 15 wrap = Virtual Cols = 68> </textarea>
</TD> </tr>
<Tr>
<TD align = middle> <input class = button onclick = htmlphp () type = button value = conversion>
<Input class = button onclick = javascript: This. Form. Output. Focus (); this. Form. Output. Select (); type = button value = select all name = button wszystko>
<Input class = button onclick = reset (input. Output) type = button value = clear>
<Input onclick+'output.select({{document.exe ccommand ("copy") 'Type = button value = copy>
</TD> </tr> </form> </center> </TD> </tr>
<Tr> </tbody> </table> </TD> </tr> </tbody> </table>
</TD> </tr> </tbody> </table> </div>
</Body>
</Html>

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.