Util.HtmlDecode Method
The HtmlDecode method is complement to the
HtmlEncode method. This method removes
all HTML tags, comments and replace the entities (nbsp , quot , apos , lt , gt , amp )
to their Unicode equivalent. The <br /> tag is replaced by the CRLF pair (newline
character) and consecutive white spaces are replaced with a single space.
All white spaces at the beginning and end of the string are removed.
Usage:
You are unlikely to use this method because the report generator
already uses this method to parse the HTML template. This method is
provided in case you need to extract text from an HTML document.
Example:
strDecoded = HtmlDecode("This is <b>'bold'</b> text")
' strDecoded = "This is 'bold' text"
See Also:
HtmlEncode
|