... | ... | @@ -148,6 +148,8 @@ I have provided two helper functions for parsing the incoming messages: |
|
|
- `Pleroma.Bots.Parser.strip_tags(msg_str)` strips all HTML tags
|
|
|
- `Pleroma.Bots.Parser.replace_entities(msg_str)` replaces all HTML entities with their corresponding characters.
|
|
|
|
|
|
The rest of the Pleroma code uses the `HtmlSanitizeEx` module so maybe you should use that one instead.
|
|
|
|
|
|
## API Overview
|
|
|
|
|
|
In module `Pleroma.Bots.Common` ([`bots_common.ex`](https://git.pleroma.social/andarna/pleroma/blob/develop/lib/pleroma/bots/bots_common.ex)), `bot_post_status` takes the original received message and the status details as discussed above, i.e. a map with fields `:attachment`, `:content` and `:visibility` or `:to` and `:cc`.
|
... | ... | |