Difference between revisions of "HTML ENTITY DECODE()"

From Recital Documentation Wiki
Jump to: navigation, search
(Example)
Line 1: Line 1:
{{YLM to do}}
 
 
 
 
 
==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 numeric html entities have been replaced with their display character equivalents
  
  
 
==Syntax==
 
==Syntax==
HTML_ENTITIES(<expC> | <memofield>)
+
HTML_ENTITY_DECODE(<expC> | <memofield>)
  
  
Line 16: Line 12:
  
 
==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_ENTITY_DECODE() function will search <expC> or <memofield> and return a string where numeric html entities have been replaced with their display character equivalents.  
 
+
 
+
The following characters are converted to their HML entity equivalents:
+
 
+
* Tab (chr(9))
+
* Line feed (chr(10))
+
* Carriage return (chr(13))
+
* &quot;
+
* &amp;
+
* &#39;
+
* &lt;
+
* &gt;
+
  
  
 
==Example==
 
==Example==
 
<code lang="recital">
 
<code lang="recital">
<!-- dispmemo.rsp -->
+
? html_entity_decode("&#123;")
<html>
+
{
<body>
+
<%
+
open database southwind
+
use example
+
goto 1
+
? '<pre>'
+
? html_entities(notes)
+
? [</pre>]
+
close databases
+
%>
+
</body>
+
</html>
+
 
</code>
 
</code>
  

Revision as of 16:37, 16 February 2010

Purpose

Function to return a string from a character string or memo field where numeric html entities have been replaced with their display character equivalents


Syntax

HTML_ENTITY_DECODE(<expC> | <memofield>)


See Also

ASC(), AT(), ATNEXT(), CHR(), CHRTRAN(), HTML_ENTITIES(), INLIST(), LEFT(), OCCURS(), RAT(), RIGHT(), STR(), STR_REPLACE(), STREXTRACT(), STRTRAN(), STUFF(), SUBSTR()


Description

The HTML_ENTITY_DECODE() function will search <expC> or <memofield> and return a string where numeric html entities have been replaced with their display character equivalents.


Example

? html_entity_decode("&#123;")
{

Products

Recital Web, Recital Server, Recital