@Composable invocations can only happen from the context of a @Composable function while try parse html in webview
I want to implement a dynamic html page parsing function. The implementation is as follows:
First, I load the page into the WebView, then I parse it. I ran into a problem that when I try to call a @Composable function inside a non-@Composable function, an error occurs. In this case, I’m trying to call the “loadAndParseWebPageComposable” function. How can I get around this error? The module code is shown below.