summaryrefslogtreecommitdiff
path: root/docs/user_guide
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2024-12-08 16:03:00 +0100
committerLibravatar GitHub <noreply@github.com>2024-12-08 16:03:00 +0100
commit9477fd7eba9bda6813b65c6c54380904892ca35e (patch)
treec67608e4ea06ff32b54f77366a10e70565bee0c9 /docs/user_guide
parent[chore] stub /api/v1/accounts/{id}/featured_tags endpoint (#3598) (diff)
downloadgotosocial-9477fd7eba9bda6813b65c6c54380904892ca35e.tar.xz
[feature] Allow partial-word hashtags using non-breaking spaces (#3606)
* [feature] Allow partial-word hashtags using non-breaking spaces * update docs
Diffstat (limited to 'docs/user_guide')
-rw-r--r--docs/user_guide/posts.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/user_guide/posts.md b/docs/user_guide/posts.md
index 1f718cfae..c45ad4bcb 100644
--- a/docs/user_guide/posts.md
+++ b/docs/user_guide/posts.md
@@ -285,6 +285,9 @@ For accessibility reasons, it is considerate to use upper camel case when you're
You can include as many hashtags as you like within a GoToSocial post, and each hashtag has a length limit of 100 characters.
+!!! tip
+ To end a hashtag, you can simply use a space, for example in the text `this #soup rules`, the hashtag is terminated by a space so `#soup` becomes the hashtag. However, you can also use a pipe character `|`, or the unicode characters `\u200B` (zero-width no-break space) or `\uFEFF` (zero-width space), to create "partial-word" hashtags. For example, with input text `this #so|up rules`, only the `#so` part becomes the hashtag. Likewise, with the input text `this #so​up rules`, which contains an invisible zero-width space after the o and before the u, only the `#so` part becomes the hashtag. See here for more information on zero-width spaces: https://en.wikipedia.org/wiki/Zero-width_space.
+
## Input Sanitization
In order not to spread scripts, vulnerabilities, and glitchy HTML all over the place, GoToSocial performs the following types of input sanitization: