c# - Use html.encode for query string parameters -
is practice use html.encode before passing query string parameters business layer? scenario respect asp.net framework, , wondering if must encode contents of query string or not before reading values keys?
i know can convert contents expected data type, question designs perspective.
thanks!
i yes. @ very least want because browser may encodings wrong. 1 symbol might show another, or , unknown character. may mix-up preceding character if browser wrong.
more complex reasons include helps prevent against html injection.
the short explanation of why need use html encoding set of characters mean special in html , encoding symbols such carets , ampersands gracefully across browsers.
Comments
Post a Comment