WildcatIP / other.js

The Chatternet feature platform
GNU Affero General Public License v3.0
7 stars 1 forks source link

Escape control characters in user-provided text #198

Open adamrothman opened 7 years ago

adamrothman commented 7 years ago

Only clients – not users – should be able to create message entity tags (variables and/or mentions for attachments, channels, identities). Additionally, a user might actually want to send the string "<!all>" in a channel.

other.js should escape angle brackets <, >. Maybe also the ampersand &? Slack escapes all three of these: https://api.slack.com/docs/message-formatting#how_to_escape_characters.