GenoPro Developer Home
GenoPro Home  |  SDK Home  |  Report Generator  |  Support  |  Search  |  Help  |  Site Map

Skip Navigation Links.

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>&apos;bold&apos;</b> text")
' strDecoded = "This is 'bold' text"

See Also:
HtmlEncode
 

 

Copyright ┬ę 1998-2014. All rights reserved. GenoPro┬« and the GenoPro logo are registered trademarks.