views:

44

answers:

2

In VB 2005 .Net is there a function that works like the php function "htmlentities"?

A: 

System.Web.HttpUtility.HtmlEncode(string) is fairly similar. However, it does not handle single quotes.

http://msdn.microsoft.com/en-us/library/system.web.httputility.htmlencode.aspx

uhleeka
A: 

HttpUtility.HtmlEncode is the close thing that what you are looking for.
You will need other functions to do other stuff that htmlEntities does.

shahkalpesh