mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
add docs
This commit is contained in:
parent
61a6316164
commit
7889626046
@ -1230,6 +1230,42 @@ Result:
|
||||
< Σ >
|
||||
```
|
||||
|
||||
## decodeHTMLComponent
|
||||
|
||||
Un-escapes substrings with special meaning in HTML. For example: `ℏ` `>` `♦` `♥` `<` etc.
|
||||
|
||||
This function also replaces numeric character references with Unicode characters. Both decimal (like `✓`) and hexadecimal (`✓`) forms are supported.
|
||||
|
||||
**Syntax**
|
||||
|
||||
``` sql
|
||||
decodeHTMComponent(x)
|
||||
```
|
||||
|
||||
**Arguments**
|
||||
|
||||
- `x` — An input string. [String](../../sql-reference/data-types/string.md).
|
||||
|
||||
**Returned value**
|
||||
|
||||
- The un-escaped string.
|
||||
|
||||
Type: [String](../../sql-reference/data-types/string.md).
|
||||
|
||||
**Example**
|
||||
|
||||
``` sql
|
||||
SELECT decodeHTMLComponent(''CH');
|
||||
SELECT decodeHMLComponent('I♥ClickHouse');
|
||||
```
|
||||
|
||||
Result:
|
||||
|
||||
```result
|
||||
'CH'
|
||||
I♥ClickHouse'
|
||||
```
|
||||
|
||||
## extractTextFromHTML
|
||||
|
||||
This function extracts plain text from HTML or XHTML.
|
||||
|
Loading…
Reference in New Issue
Block a user