---
title: "HTMLDECODE"
description: "La fonction SQL HTMLDECODE renvoie le texte encod\u00E9 en HTML sous forme de texte normal, les repr\u00E9sentations HTML des caract\u00E8res sp\u00E9ciaux \u00E9tant remplac\u00E9es par leurs caract\u00E8res d\u0027origine\u2026"
language: fr
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/fr/docs/invantive-universalsql/grammar/sql-functions/htmldecode
original: https://documentation.invantive.eu/en/docs/invantive-universalsql/grammar/sql-functions/htmldecode
updated: 2026-12-04T13:41:49Z
license: https://documentation.invantive.eu/fr/
---

## Syntaxe
```mermaid
%%{init: {
  'theme': 'base',
  'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
  'themeVariables': {
    'fontSize': '11px',
    'fontFamily': 'Arial'
  }
}}%%
flowchart LR
    Start((START)) --> HTMLDECODE[HTMLDECODE]:::quoted
    HTMLDECODE --> End((END))
```

## Objet
La fonction SQL `HTMLDECODE` renvoie le texte encodé en HTML sous forme de texte brut, en remplaçant la représentation HTML des caractères spéciaux par leur signification d'origine.

Voir également [[HTMLENCODE]].

Paramètres :
- Entrée (`varchar2`) : l'entrée qui sera décodée du format HTML en texte.

Renvoie : un texte correspondant à la donnée d'entrée décodée à partir du code HTML `varchar2`.

## Exemples
L'exemple suivant récupère la représentation textuelle d'une représentation HTML :
```sql
select htmldecode('Big Spender &amp; Johnson has &gt; output than ACME')

----------------
Big Spender & Johnson has > output than ACME
```
L'exemple suivant décode un fragment HTML contenant des balises et des guillemets :
```sql
select htmldecode('&lt;b&gt;&quot;bold&quot;&lt;/b&gt;')

----------------
<b>"bold"</b>
```

