Function dioxus::prelude::eval_provider

source ·
pub fn eval_provider() -> Rc<dyn Fn(&str) -> UseEval>
Available on crate feature html only.
Expand description

Get a struct that can execute any JavaScript.

§Safety

Please be very careful with this function. A script with too many dynamic parts is practically asking for a hacker to find an XSS vulnerability in it. This applies especially to web targets, where the JavaScript context has access to most, if not all of your application data.