<-- Previous || Up || Next -->

Prefix HTML Meta Characters Function
String Extras Class

Public Function PrefixHTMLMetaCharacters( _
    ByVal vString As Variant _
    ) As Variant

Fixes-up a string literal so that none of the characters within it will have unintended special meanings when used within HTML documents.

Examples:
    PrefixHTMLMetaCharacters("A & B") = "A &amp; B"
See also:
    VBProjectToHTMLFiles Function
    PrefixSendKeysMetaCharacters Function
Summary: Any characters such ampersands (&), less than signs (<), and greater than signs (>) are replaced by the appropriate HTML phrase so that they can be placed within HTML documents without their being interpreted as having some special meaning. For example, HTML browsers interpret less-than signs (<) as the beginning of some HTML code phrase. This function assures that the most important such characters with special meanings will be interpreted literally using the rules for HTML.
Note: This function currently supports the following translations:
    & becomes &amp;
    < becomes &lt;
    > becomes &gt;
Note: There may be other ANSI Windows characters for which there is an ampersand-semicolon sequence, but this function only makes the translations mentioned in the above list.
Note: HTML stands for Hypertext Markup Language, which is a subset of SGML. SGML stands for Standard Generalized Markup Language.
vString: String containing characters which should be interpreted literally when read as HTML. Function returns Null if vString is Null or cannot be fixed up to a String.

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.