diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2024-03-03 12:57:22 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-03 04:57:22 +0000 |
commit | e71b69257c38178eed9ccd0b62a5ae47d67858d4 (patch) | |
tree | 29f230d82e7abd7167e4eb0c69830c58dbd99f57 /docs/content/administration/mail-templates.en-us.md | |
parent | 22b4f0c09f1de5e581929bd10f39833d30d2c482 (diff) | |
download | gitea-e71b69257c38178eed9ccd0b62a5ae47d67858d4.tar.gz gitea-e71b69257c38178eed9ccd0b62a5ae47d67858d4.zip |
Breaking summary for template refactoring (#29395)
https://github.com/go-gitea/gitea/pull/29395
Diffstat (limited to 'docs/content/administration/mail-templates.en-us.md')
-rw-r--r-- | docs/content/administration/mail-templates.en-us.md | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/docs/content/administration/mail-templates.en-us.md b/docs/content/administration/mail-templates.en-us.md index 9077f97aea..0154fe55d0 100644 --- a/docs/content/administration/mail-templates.en-us.md +++ b/docs/content/administration/mail-templates.en-us.md @@ -259,14 +259,14 @@ This template produces something along these lines: The template system contains several functions that can be used to further process and format the messages. Here's a list of some of them: -| Name | Parameters | Available | Usage | -| ---------------- | ----------- | --------- |-----------------------------------------------------------------------------| -| `AppUrl` | - | Any | Gitea's URL | -| `AppName` | - | Any | Set from `app.ini`, usually "Gitea" | -| `AppDomain` | - | Any | Gitea's host name | -| `EllipsisString` | string, int | Any | Truncates a string to the specified length; adds ellipsis as needed | -| `SanitizeHTML` | string | Body only | Sanitizes text by removing any dangerous HTML tags from it. | -| `SafeHTML` | string | Body only | Takes the input as HTML; can be used for `.ReviewComments.RenderedContent`. | +| Name | Parameters | Available | Usage | +| ---------------- | ----------- | --------- | ------------------------------------------------------------------- | +| `AppUrl` | - | Any | Gitea's URL | +| `AppName` | - | Any | Set from `app.ini`, usually "Gitea" | +| `AppDomain` | - | Any | Gitea's host name | +| `EllipsisString` | string, int | Any | Truncates a string to the specified length; adds ellipsis as needed | +| `SanitizeHTML` | string | Body only | Sanitizes text by removing any dangerous HTML tags from it | +| `SafeHTML` | string | Body only | Takes the input as HTML, can be used for outputing raw HTML content | These are _functions_, not metadata, so they have to be used: |