As discussed in issue #31 and in previous chats with @qqmyers and @pdurbin, this PR introduces an insecure HTML previewer to allow users to display pages that contain script tags. This is especially useful in cases where interactive figures or other third-party libraries are involved in rendering data.
How it works
Upon redirecting to the external tool, the user is presented with a confirmation window that discloses the potential risks of using the previewer. The whole HTML page will be rendered with its script content if given consent. The user will be redirected to the dataset page if no consent is given.
Example
I've included an example based on an example found on this DaRUS file using Plotly for an interactive plot. For reproducibility adapt the following URL:
Overview
As discussed in issue #31 and in previous chats with @qqmyers and @pdurbin, this PR introduces an insecure HTML previewer to allow users to display pages that contain
script
tags. This is especially useful in cases where interactive figures or other third-party libraries are involved in rendering data.How it works
Upon redirecting to the external tool, the user is presented with a confirmation window that discloses the potential risks of using the previewer. The whole HTML page will be rendered with its script content if given consent. The user will be redirected to the dataset page if no consent is given.
Example
I've included an example based on an example found on this DaRUS file using Plotly for an interactive plot. For reproducibility adapt the following URL:
Using the default HTML previewer
Using the rich HTML previewer from this PR
The consent message