Skip to content

Commit 6a1fb28

Browse files
committed
Add reference for built in filters
1 parent a0beaa7 commit 6a1fb28

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
title: "Built-in filters"
3+
---
4+
5+
# Built-in filters
6+
7+
This reference documentation details all available built-in filters that can be used to avoid noise in the terms content.
8+
9+
## Filters
10+
11+
{{< refItem
12+
name="removeQueryParams"
13+
description="Removes specified query parameters from URLs in links and images within the terms content"
14+
>}}
15+
16+
```json
17+
"filter": [
18+
{
19+
"removeQueryParams": ["utm_source", "utm_medium"]
20+
}
21+
]
22+
```
23+
24+
Result:
25+
26+
```diff
27+
- <p>Read the <a href="https://example.com/example-page?utm_source=OGB&utm_medium=website&lang=en">list of our affiliates</a>.</p>
28+
+ <p>Read the <a href="https://example.com/example-page?lang=en">list of our affiliates</a>.</p>
29+
```
30+
31+
{{< /refItem >}}

0 commit comments

Comments
 (0)