Seed7 - The extensible programming language
Seed7 FAQ Manual Screenshots Examples Libraries Algorithms Download Links
Libraries AES ARC4 Array ASN.1 Bigfile Bigint Bigrat Bin32 Bin64 Bitdata Bitmapfont Bitset Bitsetof Boolean Browser Bstring Bytedata Cards Category CC config Cgi Cgi dialog Char Charsets Cipher Clib_file Color CLI Commands Complex Console Crc32 Deflate DES Dialog Dir Draw Duration Echo Editline Enable_input Enable_io Enable_output Encoding Environment External_file File File system Float Font Forloop Ftp Getf Gethttp Gethttps Graph Graph_file Gzip Hash Hashsetof Hmac Html_ent Httpserv Idxarray Image Inflate Inflate file Inifile Integer Keybd Line Listener LZW Make Math Msgdigest Null_file Osfiles Picture utility Pixmap_file Pixmapfont PKCS #1 Poll Process Progs Propertyfile Rational Reference Ref_list Scanfile Scanstri Set Shell Smtp Sockbase Socket SQL base Stdio Strifile String Stritext Subrange Tar Text Time TLS/SSL Triple DES Unicode Utf16 Utf8 Vectorfont 3D Vector Window Wrinum X.509 Xmldom Xml_ent Zip
Libraries
Html_ent Source Code
 previous   up   next 

Function Summary
string
decodeHtmlEntities (in string: stri)
Decode a string, which contains HTML entities.
string
encodeHtmlEntities (in string: stri)
Encode a string with HTML entities.
string
encodeHtmlContent (in string: stri)
Encode a string, such that it can be used as HTML content.
string
quoteHtmlAttrValue (in string: stri)
Encode and quote a string, such that it can be used as HTML attribute value.

Function Detail

decodeHtmlEntities

const func string: decodeHtmlEntities (in string: stri)

Decode a string, which contains HTML entities.

Returns:
a string were all HTML entities are replaced by the corresponding characters.

encodeHtmlEntities

const func string: encodeHtmlEntities (in string: stri)

Encode a string with HTML entities. This function encodes all characters, which can be described as HTML entities.

Returns:
a string were characters are replaced by the corresponding HTML entity.

encodeHtmlContent

const func string: encodeHtmlContent (in string: stri)

Encode a string, such that it can be used as HTML content. HTML content is the text between HTML start tag and end tag. In HTML content only the characers '&' and '<' must be encoded.

Returns:
a string were & and < are encoded as HTML entities.

quoteHtmlAttrValue

const func string: quoteHtmlAttrValue (in string: stri)

Encode and quote a string, such that it can be used as HTML attribute value. HTML attribute values are used in HTML start tags. This function quotes an HTML attribute value with double quotes ("). The characters '<', '>', '\"' and '&' are encoded with the predefined HTML entities &amp;lt;, &amp;gt;, &amp;quot; and &amp;amp;.

Returns:
a quoted string were < > " and & are encoded as HTML entities.


 previous   up   next