HTMLENCODE
Sintaxis
%%{init: {
'theme': 'base',
'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
'themeVariables': {
'fontSize': '11px',
'fontFamily': 'Arial'
}
}}%%
flowchart LR
Start((START)) --> HTMLENCODE[HTMLENCODE]:::quoted
HTMLENCODE --> End((END))
Propósito
La función SQL HTMLENCODE devuelve el texto introducido codificado en HTML, sustituyendo los caracteres especiales por su representación en HTML.
Véase también HTMLDECODE.
Parámetros:
- Entrada (
varchar2): la entrada que se codificará en HTML a partir del texto.
Devuelve: Un texto que corresponde a la entrada codificada en HTML como varchar2.
Ejemplos
El siguiente ejemplo recupera la representación HTML de un texto:
select htmlencode('Big Spender & Johnson has > output than ACME')
----------------
Big Spender & Johnson has > output than ACME
En el siguiente ejemplo se codifica un texto con etiquetas y comillas en formato HTML:
select htmlencode('<b>"bold"</b>')
----------------
<b>"bold"</b>