| 1 |
--- |
| 2 |
title: urls.Anchorize |
| 3 |
description: Returns the given string, sanitized for usage in an HTML id attribute. |
| 4 |
categories: [] |
| 5 |
keywords: [] |
| 6 |
params: |
| 7 |
functions_and_methods: |
| 8 |
aliases: [anchorize] |
| 9 |
returnType: string |
| 10 |
signatures: [urls.Anchorize INPUT] |
| 11 |
aliases: [/functions/anchorize] |
| 12 |
--- |
| 13 |
|
| 14 |
{{% include "/_common/functions/urls/anchorize-vs-urlize.md" %}} |
| 15 |
|
| 16 |
The `ursl.Anchorize` function sanitizes the resulting string per the [`autoIDType`][] setting in your project configuration. |
| 17 |
|
| 18 |
[`autoIDType`]: /configuration/markup/#parserautoidtype |