Li

Delete

Are you sure you want to delete this?

ProgrammingModel


Date
20211227
Target
C_083
Title
HOW TO SAVE & DISPLAY HTML CONTENT IN ASP.NET MVC5
Contents
HTML콘텐트를 어떻게 MSSQL에 저장하고 읽을 것인가 MVC5에서 create and read html tag from mssql in mvc 2. HTML Encode 하기 ("<" → "&lt;") string encodeStr = HttpUtility.HtmlEncode(">") 3. HTML Decode 하기("&lt;" → "<") string decodedStr = HttpUtility.HtmlDecode("&lt;"); 4. 예제 using System.Web; ... string str = "&, <, >, \" "; Debug.WriteLine("Original String : " + str); // Encode the string. string encodedStr = HttpUtility.HtmlEncode(str); Debug.WriteLine("Encode String : " + encodedStr); // Decode the encoded string. string decodedStr = HttpUtility.HtmlDecode(encodedStr); Debug.WriteLine("Decode String : " + decodedStr); 출처: https://wpfstory.tistory.com/12 [WPF Story]