Top "Html-encode" questions

Anything related to encoding or decoding HTML entities.

How to get MVC model strings as plain text in views

I'm sending a model to a view that have strings. Those strings are html encoded and I do not need …

javascript asp.net-mvc razor html-entities html-encode
Html encoding in .NET class library

I have a utility class for sending emails. The emails are generated as html. I'm having problems with encoding special …

c# .net html-encode
Make an NSURL with an encoded plus (%2B)

I need to pass a timestamp with a timezone offset in a GET request, e.g., 2009-05-04T11:22:00+01:00 This …

iphone url html-encode
Automatically HtmlEncode strings when the model is serialized with Json.Net

Is there a way to configure Json.Net to automatically encode all strings like HtmlEncode(myString) when the model is …

c# serialization json.net html-encode
MVC3 TextBoxFor with encoded text

Is there a way to use TextBoxFor helper with encoded text? for example: When using the following helper of MVC3 …

asp.net-mvc asp.net-mvc-3 html-encode
Why is my custom HTML Helper result getting html encoded?

I've got the following custom html helper in asp.net mvc 3 public static string RegisterJS(this HtmlHelper helper, ScriptLibrary scriptLib) { …

asp.net-mvc-3 html-encode
Fastest way to replace string in js?

When I submit/POST data to the server, I need to HTMLencode its characters (the relevant ones), since disabling input …

javascript jquery html-encode