asp.netでhtmlのテキストコンテンツを取得するには?
asp.net で次のコードを書きましたが、テキストではなく html が返されましたか?
コードはここにあります:
Function GetData(ByVal dta As String)
Dim comp As New Literal
comp.Text = dta
Return comp.Text
End Function
例えば :
入力: <span><p> this is html </p></span>
出力は次のようになります: これは html です