---
title: "HTMLENCODE"
description: "De SQL-functie HTMLENCODE retourneert de invoertekst gecodeerd als HTML, waarbij speciale tekens worden vervangen door hun HTML-representatie."
language: nl
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/nl/docs/invantive-universalsql/grammar/sql-functions/htmlencode
original: https://documentation.invantive.eu/en/docs/invantive-universalsql/grammar/sql-functions/htmlencode
updated: 2026-12-02T12:10:12Z
license: https://documentation.invantive.eu/nl/
---

## Syntax
```mermaid
%%{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))
```

## Doel
De SQL-functie `HTMLENCODE` geeft de ingevoerde tekst weer, gecodeerd als HTML, waarbij speciale tekens zijn vervangen door hun HTML-weergave.

Zie ook [[HTMLDECODE]].

Parameters:
- Input (`varchar2`): de invoer die vanuit tekst naar HTML wordt gecodeerd.

Retourwaarde: Een tekst die de invoer is, gecodeerd als HTML in de vorm van `varchar2`.

## Voorbeelden
In het volgende voorbeeld wordt de HTML-weergave van een tekst opgehaald:
```sql
select htmlencode('Big Spender & Johnson has > output than ACME')

----------------
Big Spender &amp; Johnson has &gt; output than ACME
```
In het volgende voorbeeld wordt een tekst met tags en aanhalingstekens als HTML gecodeerd:
```sql
select htmlencode('<b>"bold"</b>')

----------------
&lt;b&gt;&quot;bold&quot;&lt;/b&gt;
```

