lol-html
                                
                                
                                
                                    lol-html copied to clipboard
                            
                            
                            
                        Get the text content of a HTML element?
If I have the following handler, is it possible to get the text content / innerHTML?
                    element!("title", |el| {
                        let page_title = // some way to get the text content of `el`
                        println!("Page Title: {:?}", page_title);
                        Ok(())
                    })
                                    
                                    
                                    
                                
Hello, has anyone found a solution?
It's not possible to get text out of an Element. You have to use text! selector instead of the element!.