Start a conversation

Style Tag Removed from Document (Hosted)

Overview

This article provides information pertaining to HTML style tag being removed from the document.

 

Environment

Jive HOP 9.0.5

 

Reproduction Steps

  1. Go to Admin Console: Spaces > Settings > Filters and Macros > HTMLFilter

  2. Remove "style" from the "List of Tags to be removed".

  3. Click on "Save Properties" at the bottom left-hand side of that page.

  4. Restart your Web Apps.

  5. Create a document.

  6. Click on the HTML editor icon.

  7. Paste the following HTML code:

    <html> <head> <style> body {background-color: powderblue;} h1 {color: blue;} p {color: red;} </style> </head> <body> <h1>This is a heading</h1> <p>This is a paragraph.</p> </body> </html>
  8. Flip the editor back to the regular Full RTE.

  9. Go back to the HTML editor.

 

Actual Behavior

The style tag and its content are removed from the HTML source code. The HTML source code is converted as follows:

<body><p></p> <h1>This is a heading</h1> <p>This is a paragraph.</p></body>


Expected Behavior

The HTML style tag remains as expected.

 

Resolution

Upgrade to Jive 9.0.7 or later.

The Style HTML tag is now allowed in Jive Documents, however, issues caused by the customer-defined styles are not supported.

Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Priyanka Bhotika

  2. Posted

Comments