ZhiYeJianKang_PeiXun/cyqdata-master/DotNetCore/System/Web/HttpServerUtility.cs
2025-02-20 15:41:53 +08:00

36 lines
843 B
C#

using CYQ.Data;
using System;
using System.Collections.Generic;
using System.Text;
namespace System.Web
{
public class HttpServerUtility
{
internal HttpServerUtility()
{
}
public string HtmlDecode(string s)
{
return System.Net.WebUtility.HtmlDecode(s);
}
public string HtmlEncode(string s)
{
return System.Net.WebUtility.HtmlDecode(s);
}
public string UrlEncode(string s)
{
return System.Net.WebUtility.UrlEncode(s);
}
public string UrlDecode(string s)
{
return System.Net.WebUtility.UrlDecode(s);
}
public string MapPath(string path)
{
return AppConfig.WebRootPath + path.TrimStart('~', '/');//.Replace("/", "\\");
}
}
}