Open olivierobert opened 1 year ago
Before submitting the coding challenge my plan was to show a modal where a would be able to see google search results as modal. However, I didn't succeed that time. The UI was breaking.
My initial guess is the cross origin policy. Also, I have noticed google provides many links as relative links not absolute. There could be issue regarding js and css file injections also. I will give it another try today.
To display the content of the HTML content of another page, an iframe must be used. In this case, the srcdoc
attribute can be used to inject the HTML content to the iframe: https://www.w3schools.com/tags/att_iframe_srcdoc.asp
Issue
While the Google search result content is stored in the database, a user can only download the content. And the content is not viewable. As a result, a user cannot verify if the scraping results are correct.
Expected
The HTML content should be viewable on the application, e.g., there could be a view of the content on a new page or in a modal.