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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -