Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

escaping the html format of the field "description" #87

Open
likehopper opened this issue Jun 8, 2021 · 0 comments
Open

escaping the html format of the field "description" #87

likehopper opened this issue Jun 8, 2021 · 0 comments

Comments

@likehopper
Copy link

I create a ticket in Redmine with a notification in Rocketchat. The notification works fine on Rocketchat. Only the html format is escaped in Redmine.

example : instead of « test » I get the issue description « <strong>test</test> »

To avoid the issue, I have to comment out the line 31 [ « attachment[:text] = Messenger.markup_format(description) » ] in the « issue_patch.rb » file :

--- issue_patch.rb.orig
+++ plugins/redmine_messenger/lib/redmine_messenger/patches/issue_patch.rb
@@ -27,9 +27,6 @@
           set_language_if_valid Setting.default_language
 
           attachment = {}
-          if description.present? && Messenger.setting_for_project(project, :new_include_description)
-            attachment[:text] = Messenger.markup_format(description)
-          end
           attachment[:fields] = [{ title: I18n.t(:field_status),
                                    value: Messenger.markup_format(status.to_s),
                                    short: true },

Is this an exception to handle for Rocketchat?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant