Skip to main content

ui_event_literal_allowed

Function ui_event_literal_allowed 

Source
pub fn ui_event_literal_allowed(value: &str) -> bool
Expand description

Rejects event literals that could inject markup or script.

§Parameters

§Returns

Returns true when the condition checked by crate::runtime::ui::ui_event_literal_allowed holds and false otherwise.

§Performance

Performance is proportional to the size of the supplied inputs and any parsed or loaded data consumed by crate::runtime::ui::ui_event_literal_allowed.

§Examples

ⓘ
let _result = pharos_native::runtime::ui::ui_event_literal_allowed("value");