You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Luckily escaping and decoding HTML entities in the current jsx-slack stands on a fine balance, but it's just like riding on a rolling ball.
Currentlly we escape string to HTML entity by heuristic parsing, but sometimes it would return unexpected result. We had not determined a specification handling entities, so there are some issues on to express the creative message.
I had tried to fix partially in #16 and #33, but I noticed to have to determine a new way of handling HTML entities.
New specifications
Because Slack does not provide a correct way to escape most characters, jsx-slack will continue to allow using raw characters to format message, like *, _, ~, and so on. However, some special characters, <, >, and & in the string, will always escape to HTML entities.
It means that raw mrkdwns like <!channel> and <https://example.com/|hyperlink> would not work under the new specification. Slack just would show an original text as you wrote. In most cases, this is an expected behavior and safer than before. Just use <a> HTML tag to use hyperlink.
The text was updated successfully, but these errors were encountered:
Luckily escaping and decoding HTML entities in the current jsx-slack stands on a fine balance, but it's just like riding on a rolling ball.
Currentlly we escape string to HTML entity by heuristic parsing, but sometimes it would return unexpected result. We had not determined a specification handling entities, so there are some issues on to express the creative message.
I had tried to fix partially in #16 and #33, but I noticed to have to determine a new way of handling HTML entities.
New specifications
Because Slack does not provide a correct way to escape most characters, jsx-slack will continue to allow using raw characters to format message, like
*
,_
,~
, and so on. However, some special characters,<
,>
, and&
in the string, will always escape to HTML entities.It means that raw mrkdwns like
<!channel>
and<https://example.com/|hyperlink>
would not work under the new specification. Slack just would show an original text as you wrote. In most cases, this is an expected behavior and safer than before. Just use<a>
HTML tag to use hyperlink.The text was updated successfully, but these errors were encountered: