Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: squash
-
Labels:None
-
Story Points:2.8
-
Epic Link:
-
Team:SQuaRE
Description
SQuaSH store code changes for each CI run with respect to the previous one. This information must be added to InfluxDB and displayed by Chronograf.
To display that in Chronograf, we need the ability to add links to external pages into the Chronograf table cells.
By default, ReactJS escapes the HTML to prevent XSS (Cross-site scripting).
I've tried to use the dangerouslySetInnerHTML property in the table cells like this:
<div> dangerouslySetInnerHTML={{__html: cellContents}} </div>
But looking at how Chronograf implements the Markdown cells in the Dashboard, the markdown-react library is a better option, it can safely insert HTML into the DOM.