Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HtmlPreview issue with <style> tag #49

Open
luddaniel opened this issue Dec 22, 2023 · 1 comment
Open

HtmlPreview issue with <style> tag #49

luddaniel opened this issue Dec 22, 2023 · 1 comment

Comments

@luddaniel
Copy link

luddaniel commented Dec 22, 2023

It seems like HtmlPreview has issue with <style> tag. No analysis as been done.
All CSS content is shown as text :
Capture du 2023-12-22 14-54-37

Here is the html file : 00-Supplementary_files_S00_Read_me_file.zip

Tested on all versions from v1.1.1 to v1.4

@qqmyers
Copy link
Member

qqmyers commented Jan 22, 2024

My guess is the issue is with the <script> tags, which are stripped (by design, since scripts could be malicious). You may want to try the RichHtml Previewer that allows the user to display content with scripts:
image

The RichHtml previewer could be used as a substitute for the basic Html previewer or as an additional one. (The RichHtml previewer only shows the warning and the choice to display w/ or without rich content if scripts are detected so it works like the basic Html previewer for files w/o scripts.)

Assuming the RichHtml previewer works for you, let me know if there's anything we could/should change in the basic Html previewer or if this issue can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants