HTMLENCODE
Sintassi
%%{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))
Scopo
La funzione SQL HTMLENCODE restituisce il testo immesso codificato in HTML, con i caratteri speciali sostituiti dalla loro rappresentazione HTML.
Vedi anche HTMLDECODE.
Parametri:
- Input (
varchar2): l'input che verrà convertito in HTML a partire dal testo.
Restituisce: un testo che rappresenta l'input codificato in HTML come varchar2.
Esempi
L'esempio seguente recupera la rappresentazione HTML di un testo:
select htmlencode('Big Spender & Johnson has > output than ACME')
----------------
Big Spender & Johnson has > output than ACME
L'esempio seguente codifica un testo contenente tag e virgolette in formato HTML:
select htmlencode('<b>"bold"</b>')
----------------
<b>"bold"</b>