Project

General

Profile

Actions

Defect #20116

closed

The HTML symbols are escaped

Added by jonathan ben almost 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Gantt
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

when i load the Roadmap, it's looks below.

the html code below:


<div class="gantt_subjects">
<div class="project-name" style="position: absolute;top:44px;left:4px;width:326px;"><span class="icon icon-projects ">
<a href="/projects/lailaihui">test</a></span></div><div class="issue-subject" id="issue-3" style="position: absolute;top:64px;left:24px;width:306px;" title="test">
<span class=" icon icon-issue"><img alt="Person" class="gravatar" height="10" src="/plugin_assets/redmine_people/images/person.png?1434458109" title="Assignee: test" width="10" />
<a href="/issues/3" class="issue tracker-1 status-1 priority-2 priority-default">tttt #3</a>: tttttttttttttttt</span>
</div><div class="milestones-label" style="position: absolute;top:84px;left:24px;width:306px;">

&lt;span class=&#x27;icon icon-milestones&#x27;&gt;Milestones&lt;/span&gt;

</div><div class="milestone-name" style="position: absolute;top:104px;left:44px;width:286px;">

&lt;span class=&#x27;icon icon-milestone&#x27;&gt;&lt;a href=&quot;/milestones/3&quot;&gt;testtestetest&lt;/a&gt;&lt;/span&gt;

</div><div class="version-name" id="version-1" style="position: absolute;top:124px;left:24px;width:306px;"><span

i think the problem is : & lt; and & gt; symbols is escaped?


Files

1.png (57.8 KB) 1.png jonathan ben, 2015-06-17 12:07
Actions #1

Updated by jonathan ben almost 9 years ago

Actions #2

Updated by jonathan ben almost 9 years ago

  • Status changed from New to Resolved

just fixed it.
the problem from plugin
advanced_roadmap_v2
/redmine/web/plugins/advanced_roadmap_v2/lib/advanced_roadmap/redmine_helpers_gantt_patch.rb

        def subject_for_milestone(milestone, options)
          case options[:format]
          when :html
            #subject = "<span class='icon icon-milestone'>" 
            #subject = "" 
            #subject << view.link_to_milestone(milestone)
            #subject << "</span>" 
            #html_subject(options, subject, :css => "milestone-name")
            html_class = "" 
            html_class << 'icon icon-milestone'
            subject = view.link_to_milestone(milestone).html_safe
            subject = view.content_tag(:span, subject,
                                     :class => html_class).html_safe
            html_subject(options, subject, :css => "milestone-name")

          when :image
            image_subject(options, milestone.to_s)
          when :pdf
            pdf_new_page?(options)
            pdf_subject(options, milestone.to_s)
          end
        end

Actions #3

Updated by Jean-Philippe Lang almost 9 years ago

  • Status changed from Resolved to Closed
  • Resolution set to Invalid

OK, thanks for the feedback.

Actions

Also available in: Atom PDF