Difference between revisions of "HTML ENTITIES()"
From Lianjapedia
Yvonne.milne (Talk | contribs) (→See Also) |
|||
(6 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Function to return a string from a character string or memo field where qualifying characters have been replaced with their html entity equivalents | Function to return a string from a character string or memo field where qualifying characters have been replaced with their html entity equivalents | ||
− | |||
==Syntax== | ==Syntax== | ||
HTML_ENTITIES(<expC> | <memofield>) | HTML_ENTITIES(<expC> | <memofield>) | ||
− | |||
==See Also== | ==See Also== | ||
− | [[ASC()]], [[AT()]], [[ATNEXT()]], [[CHR()]], [[CHRTRAN()]], [[DECODE()]], [[ENCODE()]], [[HTML_ENTITY_DECODE()]], [[INLIST()]], [[LEFT()]], [[OCCURS()]], [[RAT()]], [[RIGHT()]], [[STR()]], [[STR_REPLACE()]], [[STREXTRACT()]], [[STRTRAN()]], [[STUFF()]], [[SUBSTR()]] | + | [[ASC()]], [[AT()]], [[ATNEXT()]], [[CHR()]], [[CHRTRAN()]], [[DECODE()]], [[ENCODE()]], [[HTML_ENTITY_DECODE()]], [[HTML_TOPLAINTEXT()]],[[INLIST()]], [[LEFT()]], [[OCCURS()]], [[RAT()]], [[RIGHT()]], [[STR()]], [[STR_REPLACE()]], [[STREXTRACT()]], [[STRTRAN()]], [[STUFF()]], [[SUBSTR()]] |
− | + | ||
==Description== | ==Description== | ||
The HTML_ENTITIES() function will search <expC> or <memofield> and return a string where qualifying characters have been replaced with their html entity equivalents. | The HTML_ENTITIES() function will search <expC> or <memofield> and return a string where qualifying characters have been replaced with their html entity equivalents. | ||
− | |||
The following characters are converted to their HTML entity equivalents: | The following characters are converted to their HTML entity equivalents: | ||
Line 25: | Line 21: | ||
* < | * < | ||
* > | * > | ||
− | |||
==Example== | ==Example== | ||
Line 42: | Line 37: | ||
</html> | </html> | ||
</pre> | </pre> | ||
− | |||
==Products== | ==Products== | ||
− | + | Lianja Server, Lianja | |
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
− | |||
[[Category:String Data Functions]] | [[Category:String Data Functions]] | ||
+ | [[Category:HTML Functions]] | ||
+ | [[Category:Lianja VFP Extensions]] | ||
+ | [[Category:VFP Function Extensions]] |
Latest revision as of 09:22, 20 September 2016
Purpose
Function to return a string from a character string or memo field where qualifying characters have been replaced with their html entity equivalents
Syntax
HTML_ENTITIES(<expC> | <memofield>)
See Also
ASC(), AT(), ATNEXT(), CHR(), CHRTRAN(), DECODE(), ENCODE(), HTML_ENTITY_DECODE(), HTML_TOPLAINTEXT(),INLIST(), LEFT(), OCCURS(), RAT(), RIGHT(), STR(), STR_REPLACE(), STREXTRACT(), STRTRAN(), STUFF(), SUBSTR()
Description
The HTML_ENTITIES() function will search <expC> or <memofield> and return a string where qualifying characters have been replaced with their html entity equivalents.
The following characters are converted to their HTML entity equivalents:
- Tab (chr(9))
- Line feed (chr(10))
- Carriage return (chr(13))
- "
- &
- '
- <
- >
Example
<!-- dispmemo.rsp --> <html> <body> <% open database southwind use example goto 1 ? "<pre>" + html_entities(notes) + "</pre>" close databases %> </body> </html>
Products
Lianja Server, Lianja