SoFunction
Updated on 2025-03-07

Generate static pages Implementation ideas


if ( == "")
{
("<script>alert('Please make sure you have selected a web page')</script>");
return;
}
if (((".") != "htm") || ((".") != "html"))
{
("<script>alert('Please make sure you have selected a web page')</script>");
return;
}
ec = ("gb2312");//Specify the encoding format
sr = new (, ec);

string strHTML =(());
strHTML=FormatStr(strHTML); //After formatting the HTML code, insert this strHTML into the database and extract it when it is ready to be used!
();
//Post the format HTML method code

/// <summary>
/// Format HTML
/// </summary>
/// <param name="str"></param>
/// <returns></returns>
private string FormatStr(string str)
{
string strContent = ("<", "&lt;");
strContent = (">", "&gt;");
//strContent = (chr(13),"<br>");
strContent = ("\r", "<br>");
strContent = (" ", "&nbsp;");
strContent = ("[isOK]", "<img src=");
strContent = ("[b]", "<b>");
strContent = ("[red]", "<font color=CC0000>");
strContent = ("[big]", "<font size=7>");
strContent = ("[/isOK]", "></img>");
strContent = ("[/b]", "</b>");
strContent = ("[/red]", "</font>");
strContent = ("[/big]", "</font>");
return strContent;
}