Skip to content

Commit

Permalink
Merge pull request #3427 from szarnyasg/iss2511
Browse files Browse the repository at this point in the history
Document html_escape and html_unescape functions
  • Loading branch information
szarnyasg authored Sep 9, 2024
2 parents f10efa7 + 741d3f1 commit 8fafc40
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions docs/extensions/inet.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,31 @@ SELECT cidr, host(cidr) FROM tbl;
| 192.168.0.0/16 | 192.168.0.0 |
| 127.0.0.1 | 127.0.0.1 |
| 2001:db8:3c4d:15::1a2f:1a2b/96 | 2001:db8:3c4d:15::1a2f:1a2b |

## HTML Escape and Unescape Functions

```sql
SELECT html_escape('&');
```

```text
┌──────────────────┐
│ html_escape('&') │
│ varchar │
├──────────────────┤
│ & │
└──────────────────┘
```

```sql
SELECT html_unescape('&');
```

```text
┌────────────────────────┐
│ html_unescape('&') │
│ varchar │
├────────────────────────┤
│ & │
└────────────────────────┘
```

0 comments on commit 8fafc40

Please sign in to comment.