Top "Html-encode" questions

Anything related to encoding or decoding HTML entities.

ASP.NET automatically converts & to &

Minor issue, but it's driving me nuts nonetheless. I'm building a url for a <script> tag include to …

c# asp.net vb.net html-encode
How to decode HTML entities in Rails 3?

I am trying to decode some HTML entities, such as '&amp;lt;' becoming '<'. I …

ruby-on-rails ruby ruby-on-rails-3 html-entities html-encode
Return raw string from REST service method

I have a REST service method written in C#, defined as below: [WebGet(UriTemplate = "/{par1}/{par2}/{par3}")] public string ProcessGet(…

rest wcf c#-4.0 html-encode
Correct PHP method to store special chars in MySQL DB

Using PHP, what is the best way to store special characters (like the following) in a MSQUL database, to avoid …

php mysql sql-injection html-entities html-encode
How to Html.Encode in webforms

I have an ASP.NET Web Forms application. There is a page with TextBoxes and users enter search terms into …

asp.net security webforms html-encode
Where is HtmlEncode in Asp.NET 5

I have a custom IHtmlHelper extension method that uses TagBuilder and returns an HtmlString. I can no longer pass tagBuiler.…

asp.net asp.net-mvc asp.net-core asp.net-core-mvc html-encode
HTMLEncode in Winforms

I have a Winform application in which I am checking if a fully qualified file name c:\somefolder\my file …

c# html-encode
HtmlEncode on Post for ASP.Net MVC 3 Html.TextAreaFor

I have an ASP.Net MVC 3 page in which I have an Html.TextAreaFor control, see code below. If I …

asp.net-mvc html-encode
html_entity_decode in FPDF(using tFPDF extension)

I am using tFPDF to generate a PDF. The php file is UTF-8 encoded. I want &copy; for example, …

php pdf fpdf html-encode
With the new Razor View Engine, should my HtmlHelpers return string or IHtmlString?

With the Razor View Engine, anytime you output a string directly to the page, it's HTML encoded. e.g.: @"<…

c# asp.net-mvc razor html-encode