Open longnd opened 9 months ago
@longnd You can download the file under *.html
format by clicking on the download button. The file can then be opened with a browser and you can view the Google search result page.
If it is required to render the HTML content, these 2 tasks must be done:
<script>
tags to avoid running unexpected scripts, and more.dangerouslySetInnerHTML
or directly manipulating the DOM.
It is the best to implement these tasks using external libraries.@CuteTN Another simpler solution would be using an <iframe>
tag to render the stored HTML, it would resolve all of the concerns you mentioned above without the need to process the stored HTML content
<iframe sandbox srcdoc="{Stored HTML}" />
@longnd I got it. Thank you for the suggestion!
Issue
The stored HTML content is not rendered, making it hard for users to actually check/see the content of the Google search. If we need to render the HTML, how would you do that?
Please note that it is not necessary to open a PR to address this issue. I would like to understand about the possible solution only.