InvantiveのドキュメントInvantive Cloudの一部
Invantive サポートフォーラムログイン / 会員登録

HTMLENCODE

構文

%%{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))

目的

The HTMLENCODE SQL function returns the input text encoded as HTML, with special characters replaced by their HTML representation.

参照:HTMLDECODE。

パラメータ:

  • Input (varchar2): the input which will be encoded to HTML from text.

Returns: A text which is the input encoded as HTML as varchar2.

例

The following example retrieves the HTML representation of a text:

select htmlencode('Big Spender & Johnson has > output than ACME')

----------------
Big Spender & Johnson has > output than ACME

The following example encodes a text with tags and quotes as HTML:

select htmlencode('<b>"bold"</b>')

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