Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-64507

HTML in job & build description has important elements removed

      Dear Team,

      After upgrading Jenkins to the latest LTS version 2.263.1 the HTML put in job description, or build description is somehow processed server side and stuff is removed, like:

      1. "font" tags are removed completely
        • IMPACT:   lost all formatting (color, font size, font effects)
        • workarround is to set the font as a style  
          • source:           <li><font size="2" color="purple"> MESSAGE </font></li>
          • rendered:        <li> MESSAGE </li>
          • solution:          <li style="color:purple!important; font-size:20px"> MESSAGE </li>
      2. "title" attributes are removed from all tags
        • IMPACT:   no more tooltips on our tables
        • No workaround
          • source:         <td title="TOOLTIP"> MESSAGE </td>
          • rendered:      <td> MESSAGE </td>
      3. "rowspan" / "colspan" attributes are removed from "td" and "th" tags
        • IMPACT:   pre-existent tables are now misaligned 
        • No workaround
          • source:        <th rowspan="2" colspan="3">Build</th>
          • rendered:     <th>Build</th>

       

       

       

          [JENKINS-64507] HTML in job & build description has important elements removed

          Rajiv Rajaian created issue -
          Rajiv Rajaian made changes -
          Attachment Original: Jenkins_html_build_description_chrome_debug.JPG [ 53715 ]
          Rajiv Rajaian made changes -

          Vlad Andone added a comment - - edited

          Same problem here.    All this was working back in 2.204.1 but fails in the newest LTS 2.263.1

          The HTML put in job description, or build description is somehow processed server side and stuff is removed, like:

          • "font" tags are removed completely
            • IMPACT:   lost all formatting (color, font size, font effects)
            • workarround is to set the font as a style  
              • original:           <li><font size="2" color="purple"> MESSAGE </font></li>
              • displayed:        <li> MESSAGE </li>
              • solution:          <li style="color:purple!important; font-size:20px"> MESSAGE </li>
          • "title" attributes are removed from all tags
            • IMPACT:   no more tooltips on our tables
            • No workaround
              • original:         <td title="TOOLTIP"> MESSAGE </td>
              • displayed:      <td> MESSAGE </td>
          • "rowspan" / "colspan" attributes are removed from "td" and "th" tags
            • IMPACT:   pre-existent tables are now misaligned 
            • No workaround
              • original:        <th rowspan="2" colspan="3">Build</th>
              • displayed:      <th>Build</th>**

          Vlad Andone added a comment - - edited Same problem here.    All this was working back in 2.204.1 but fails in the newest LTS 2.263.1 The HTML put in job description, or build description is somehow processed server side and stuff is removed, like: "font" tags are removed completely IMPACT:   lost all formatting (color, font size, font effects) workarround is to set the font as a style   original:           <li> <font size="2" color="purple"> MESSAGE </font> </li> displayed:        <li> MESSAGE </li> solution:          <li style="color:purple!important; font-size:20px"> MESSAGE </li> "title" attributes are removed from all tags IMPACT:   no more tooltips on our tables No workaround original:         <td title="TOOLTIP" > MESSAGE </td> displayed:      <td> MESSAGE </td> "rowspan" / "colspan" attributes are removed from "td" and "th" tags IMPACT:   pre-existent tables are now misaligned  No workaround original:        <th rowspan="2" colspan="3" >Build</th> displayed:      <th>Build</th>**
          Vlad Andone made changes -
          Description Original: Dear Team,

          After upgrading Jenkins to the latest LTS version 2.263.1 the font colors are lost in html job build description.

          Anyone else faced the same issue ?

           

           

           
          New: Dear Team,

          After upgrading Jenkins to the latest LTS version 2.263.1 the HTML put in job description, or build description is somehow processed server side and stuff is removed, like:
           # *"font" tags are removed completely*
           ** IMPACT:   lost all formatting (color, font size, font effects)
           ** workarround is to set the font as a style  
           *** original:           <li><font size="2" color="purple"> MESSAGE </font></li>
           *** displayed:        <li> MESSAGE </li>
           *** solution:          <li style="color:purple!important; font-size:20px"> MESSAGE </li>
           # *"title" attributes are removed from all tags*
           ** IMPACT:   no more tooltips on our tables
           ** *No workaround*
           *** original:         <td title="TOOLTIP"> MESSAGE </td>
           *** displayed:      <td> MESSAGE </td>
           # *"rowspan" / "colspan" attributes are removed from "td" and "th" tags*
           ** IMPACT:   pre-existent tables are now misaligned 
           ** *No workaround*
           *** original:        <th rowspan="2" colspan="3">Build</th>
           *** displayed:      <th>Build</th>

           

           

           
          Vlad Andone made changes -
          Description Original: Dear Team,

          After upgrading Jenkins to the latest LTS version 2.263.1 the HTML put in job description, or build description is somehow processed server side and stuff is removed, like:
           # *"font" tags are removed completely*
           ** IMPACT:   lost all formatting (color, font size, font effects)
           ** workarround is to set the font as a style  
           *** original:           <li><font size="2" color="purple"> MESSAGE </font></li>
           *** displayed:        <li> MESSAGE </li>
           *** solution:          <li style="color:purple!important; font-size:20px"> MESSAGE </li>
           # *"title" attributes are removed from all tags*
           ** IMPACT:   no more tooltips on our tables
           ** *No workaround*
           *** original:         <td title="TOOLTIP"> MESSAGE </td>
           *** displayed:      <td> MESSAGE </td>
           # *"rowspan" / "colspan" attributes are removed from "td" and "th" tags*
           ** IMPACT:   pre-existent tables are now misaligned 
           ** *No workaround*
           *** original:        <th rowspan="2" colspan="3">Build</th>
           *** displayed:      <th>Build</th>

           

           

           
          New: Dear Team,

          After upgrading Jenkins to the latest LTS version 2.263.1 the HTML put in job description, or build description is somehow processed server side and stuff is removed, like:
           # *"font" tags are removed completely*
           ** IMPACT:   lost all formatting (color, font size, font effects)
           ** workarround is to set the font as a style  
           *** source:           <li>{color:#FF0000}<font size="2" color="purple">{color} MESSAGE {color:#FF0000}</font>{color}</li>
           *** rendered:        <li> MESSAGE </li>
           *** solution:          <li style="color:purple!important; font-size:20px"> MESSAGE </li>
           # *"title" attributes are removed from all tags*
           ** IMPACT:   no more tooltips on our tables
           ** {color:#FF0000}*No workaround*{color}
           *** source:         <td {color:#FF0000}title="TOOLTIP"{color}> MESSAGE </td>
           *** rendered:      <td> MESSAGE </td>
           # *"rowspan" / "colspan" attributes are removed from "td" and "th" tags*
           ** IMPACT:   pre-existent tables are now misaligned 
           ** {color:#FF0000}*No workaround*{color}
           *** source:        <th {color:#FF0000}rowspan="2" colspan="3"{color}>Build</th>
           *** rendered:     <th>Build</th>

           

           

           
          Vlad Andone made changes -
          Priority Original: Minor [ 4 ] New: Major [ 3 ]

          Vlad Andone added a comment -

          @fqueiruga Could this bug be caused by changes corresponding to epic JENKINS-60919 ?

           

          Vlad Andone added a comment - @ fqueiruga  Could this bug be caused by changes corresponding to epic JENKINS-60919  ?  
          Vlad Andone made changes -
          Summary Original: Job build description not working for html font color tag New: HTML in job & build description has important elements removed
          Vlad Andone made changes -
          Link New: This issue relates to JENKINS-60919 [ JENKINS-60919 ]

            Unassigned Unassigned
            rajivece Rajiv Rajaian
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: