I'm looking for a part-time remote job.

Hire me


I'm the author of:

Mastering Redmine is a comprehensive guide with tips, tricks and best practices, and an easy-to-learn structure.

Check the book's project or

Buy the book

Social pages of the book:

By buying this book you also donate to Redmine (see this page).


Follow me:

Bug #2150

Wrong content for HTML code

Added by Mathias K almost 12 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
08 Feb 2013
Due date:
07 Jul 2013
% Done:

100%

Redmine version:
2.2
External issue:

Description

There is a problem with the output of HTML code in the sidebar. The HTML code is converted to text:

Original:

<br>Support us:<br><br>

HTML Output:

<br>Support us:<br><br>

The preview in the settings looks good but the final output is wrong.

text2image_A21694_20130208_152040.jpg View (5.17 KB) Mathias K, 08 Feb 2013 15:21

History

#1 Updated by Mathias K almost 12 years ago

HTML Output as Image ...

#2 Updated by Alexander van der Mey almost 12 years ago

I can confirm this issue on Redmine 2.2.3. I briefly looked into the code, but I’m not familiar with Ruby at all. Previewing HTML works OK however, so my guess is the call to the normal viewing rendering goes wrong somehow?

#3 Updated by Mathias K over 11 years ago

I found a solution to fix this problem:

The line 15 in sidebar/app/helpers/sidebar_content_helper.rb:

content = sidebar.content

should be

content = sidebar.content.html_safe

This works with redmine 2.2.4.

Regards,

Mathias

#4 Updated by Andriy Lesyuk over 11 years ago

  • Due date set to 07 Jul 2013
  • Status changed from New to In Progress
  • Assignee set to Andriy Lesyuk
  • Target version changed from 0.2.0 to 0.1.1
  • % Done changed from 0 to 100

Thanks, Mathias K!

#5 Updated by Andriy Lesyuk over 11 years ago

  • Status changed from In Progress to Closed

Also available in: Atom PDF

Terms of use | Privacy policy