Imagine a shortcut action which is normally run from a share sheet in Safari and accepts the content of the currently displayed page as formatted text. But now I want to run the shortcut action programmatically from a Pythonista script, for a set of other web pages. I cannot find out how I can properly pass the content of these other pages as formatted text. If I pass the html, the markup gets processed verbatim - not what I want. I would like to pass the rendered version of the page.
Any help appreciated!