Difference between revisions of "HTML ENTITY DECODE()"

From Recital Documentation Wiki
Jump to: navigation, search
 
(4 intermediate revisions by one user not shown)
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>)
  
  
 
==See Also==
 
==See Also==
[[ASC()]], [[AT()]], [[ATNEXT()]], [[CHR()]], [[CHRTRAN()]], [[HTML_ENTITIES()]], [[INLIST()]], [[LEFT()]], [[OCCURS()]], [[RAT()]], [[RIGHT()]], [[STR()]], [[STR_REPLACE()]], [[STREXTRACT()]], [[STRTRAN()]], [[STUFF()]], [[SUBSTR()]]
+
[[ASC()]], [[AT()]], [[ATNEXT()]], [[CHR()]], [[CHRTRAN()]], [[DECODE()]], [[ENCODE()]], [[HTML_ENTITIES()]], [[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_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>
 
  
 
==Products==
 
==Products==

Latest revision as of 14:27, 1 July 2011

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(), DECODE(), ENCODE(), 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