Using StringToHTML()

text.html - imported plainly:

Hi there

A small presentation on the wonders of ASP - by Jakob Lund Krarup : )

yadayadayada... yadayadayada... yadayadayada... yadayadayada...
yadayadayada... yadayadayada... yadayadayada... yadayadayada...

text.html HTML encoded (content without presentation):

<h3>Hi there</h3>
A small presentation on the wonders of ASP - by Jakob Lund Krarup : )
<p><i>yadayadayada...</i> yadayadayada... yadayadayada... yadayadayada...
<br>yadayadayada... <u>yadayadayada...</u> yadayadayada... yadayadayada...
<ul>
<li>Nice
<li>Great!
<li>Wonderful!!
</ul>

Contents of default.asp :
<!-- The includefile is one level back from the "default.asp" file: -->
<!--#include file ="../../jakes_IO.asp"-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="da">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Example use of the StringToHTML function</title>
    <link rel="stylesheet" type="text/css" href="/jake.css">
</head>
<body>
    <div align="center"><h1>Using StringToHTML()</h1></div>
    
    <b>text.html - imported plainly:</b><br>
    <div class="data">
        <%=GetFileContents("text.html")%>
    </div>

    <!-- ***************    HERE IS WHERE IT HAPPENS!!     ****************** -->
    <p><b>text.html HTML encoded (content without presentation):</b>
    <div class="sample">
        <%=stringToHTML (GetFileContents("text.html"))%>
    </div>
    <!-- ********************************************************************** -->
    
    <p><b>Contents of default.asp :</b><br>
    <span class="source">
    <% response.write(stringToHTML (GetFileContents("default.asp")))%>
    </span>
    
</body>
</html>