- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2022 01:47 PM
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?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2022 01:53 PM
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;"> </p>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2022 01:53 PM
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;"> </p>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2022 11:18 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2022 05:42 AM
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.