c# - Best datatype for storing html -
i need store html in 1 of varibles in class, datatype suggest? string ok or there special datatype can use kind of operation.
string
if you're storing raw html.
if planning on storing object-representation of html, use object.
however, if it's raw html string, you'd use string
. there's nothing specially suited type of string content.
actually, there kindof is, has specialist usage represent already-encoded html data should not encoded again (generally used output raw html in asp.net). isn't want, answer complete - htmlstring
.
Comments
Post a Comment