Difference between revisions of "HTML ENTITY DECODE()"
From Recital Documentation Wiki
		
		
		
Helengeorge  (Talk | contribs)  (→Class)  | 
				Yvonnemilne  (Talk | contribs)   | 
				||
| Line 4: | Line 4: | ||
==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   | |
==Syntax==  | ==Syntax==  | ||
| − | + | HTML_ENTITIES(<expC> | <memofield>)  | |
==See Also==  | ==See Also==  | ||
| − | + | [[ASC()]], [[AT()]], [[ATNEXT()]], [[CHR()]], [[CHRTRAN()]], [[HTML_ENTITY_DECODE()]], [[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 following characters are converted to their HML entity equivalents:  | ||
| + | |||
| + | * Tab (chr(9))  | ||
| + | * Line feed (chr(10))  | ||
| + | * Carriage return (chr(13))  | ||
| + | * "  | ||
| + | * &  | ||
| + | * '  | ||
| + | * <  | ||
| + | * >  | ||
==Example==  | ==Example==  | ||
<code lang="recital">  | <code lang="recital">  | ||
| − | + | <!-- dispmemo.rsp -->  | |
| + | <html>  | ||
| + | <body>  | ||
| + | <%  | ||
| + | open database southwind  | ||
| + | use example  | ||
| + | goto 1  | ||
| + | ? "<pre>"  | ||
| + | ? html_entities(notes)  | ||
| + | ? "</pre>"  | ||
| + | close databases  | ||
| + | %>  | ||
| + | </body>  | ||
| + | </html>  | ||
</code>  | </code>  | ||
| − | |||
| + | ==Products==  | ||
| + | Recital Web, Recital Server, Recital  | ||
[[Category:Documentation]]  | [[Category:Documentation]]  | ||
[[Category:Functions]]  | [[Category:Functions]]  | ||
| + | [[Category:String Data]]  | ||
| + | [[Category:String Data Functions]]  | ||
Revision as of 15:48, 16 February 2010
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(), HTML_ENTITY_DECODE(), 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 HML 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
Recital Web, Recital Server, Recital