public String HtmlEncode(String txt)
    {
        txt = replace(txt, "&", "&");
        txt = replace(txt, "\"", """);
        txt = replace(txt, "<", "&lt;");
        txt = replace(txt, ">", "&gt;");
        txt = replace(txt, " ", "&nbsp;");
        return txt;
    }
posted on 2008-07-08 14:00  Stym--闫生  阅读(301)  评论(0编辑  收藏  举报