For various reasons, you sometimes want to open a local HTML file on your iPhone or iPad. As natively, Apple does not offer to read the file via Safari and it is then necessary to resort to other solutions. Applications exist but it is possible to do without them by using the Shortcuts application on your iPhone.
How to read HTML file on iPhone?
First, create a shortcut with the “Open a Web page” action..
Then, remember to enable the “In Share Sheet” option for your shortcut.
Now to access an HTML file locally located in your files or on Google drive, follow these steps:
- Files: Open the file then> Share> Select your shortcut
- Google Drive: Open in> Select your shortcut