Issues with "<style></style>" tags in Knowledge articles in Tokyo

Mark Small
Tera Expert

We're currently in the process of upgrading to Tokyo, and I'm seeing issues with <style></style> tags within the HTML of knowledge articles.   We have several articles in our HR knowledge base in production that use style tags to create buttons, or custom tooltips, etc. and they all work fine in our current environment.   In our new Tokyo Test environment that was cloned from production then upgraded, we just started testing.  I'm finding that the <style></style> tags within articles is being stripped out completely, which is causing issues with those articles that have them.  

 

I tested this in my PDI, and I'm not seeing this issue, so I'm guessing it's a configuration issue in our Tokyo test environment.    Has anyone come across this issue in Tokyo?

1 ACCEPTED SOLUTION

Andrew64
Mega Guru

We had the same issue. The HTML editor wipes out the <style></style> tag. A workaround would be to place the following before your <style> tag. This will allow the tag to be used. 

<p style="display: none;">&nbsp;</p>

 

View solution in original post

3 REPLIES 3

Andrew64
Mega Guru

We had the same issue. The HTML editor wipes out the <style></style> tag. A workaround would be to place the following before your <style> tag. This will allow the tag to be used. 

<p style="display: none;">&nbsp;</p>

 

Mark Small
Tera Expert

Thank you Andrew64.  This is extremely helpful.  I will make sure that is added to existing article in our production environment before it gets upgraded to Tokyo.

Lucas Vieites
Tera Guru

Hi there, this is a known issue and we have a Known Error article published: KB1194889 - CSS in KB article body is not working.

You can use the "I have this issue" feature to add yourself to the affected users list, and stay up to date with any change in the PRB by subscribing to the article. You will need to log in to Now Support and use the "Subcribe" feature in the three-dot menu.

I hope this helps.