こんにちは私は RichEditor を使用しています。このエディタはスパンとスタイルをテーブルに保存します。したがって、これを回避するために次の方法を使用しています。HtmlDecode(DataBinder.Eval(Container.DataItem, "ImageDesc"))
しかし、次のようなエラーが発生します。
HtmlCode に無効な引数があります
これを解決するにはどうすればよいですか。C#コードは次のとおりです。
public string HtmlDecode(string strValue)
{
string functionReturnValue = null;
try
{
functionReturnValue = Server.HtmlDecode(strValue);
}
catch (Exception exc)
{
// ProcessModuleLoadException(this, exc);
}
return functionReturnValue;
}