···259259The template system contains several functions that can be used to further process and format
260260the messages. Here's a list of some of them:
261261262262-| Name | Parameters | Available | Usage |
263263-| ---------------- | ----------- | --------- |-----------------------------------------------------------------------------|
264264-| `AppUrl` | - | Any | Gitea's URL |
265265-| `AppName` | - | Any | Set from `app.ini`, usually "Gitea" |
266266-| `AppDomain` | - | Any | Gitea's host name |
267267-| `EllipsisString` | string, int | Any | Truncates a string to the specified length; adds ellipsis as needed |
268268-| `SanitizeHTML` | string | Body only | Sanitizes text by removing any dangerous HTML tags from it. |
269269-| `SafeHTML` | string | Body only | Takes the input as HTML; can be used for `.ReviewComments.RenderedContent`. |
262262+| Name | Parameters | Available | Usage |
263263+| ---------------- | ----------- | --------- | ------------------------------------------------------------------- |
264264+| `AppUrl` | - | Any | Gitea's URL |
265265+| `AppName` | - | Any | Set from `app.ini`, usually "Gitea" |
266266+| `AppDomain` | - | Any | Gitea's host name |
267267+| `EllipsisString` | string, int | Any | Truncates a string to the specified length; adds ellipsis as needed |
268268+| `SanitizeHTML` | string | Body only | Sanitizes text by removing any dangerous HTML tags from it |
269269+| `SafeHTML` | string | Body only | Takes the input as HTML, can be used for outputing raw HTML content |
270270271271These are _functions_, not metadata, so they have to be used:
272272