pub struct HTMLProcessor { /* private fields */ }Available on crate feature
html only.Expand description
HTML processor that applies BudouX boundaries to a DOM.
Implementations§
Source§impl HTMLProcessor
impl HTMLProcessor
Sourcepub fn new(parser: Parser, options: Option<HTMLProcessorOptions>) -> Self
pub fn new(parser: Parser, options: Option<HTMLProcessorOptions>) -> Self
Create a new HTML processor from a Parser.
Sourcepub fn apply_to_html_string(&self, html: &str) -> String
pub fn apply_to_html_string(&self, html: &str) -> String
Apply BudouX boundaries to an HTML string.
Sourcepub fn apply_to_element(&self, element: &NodeRef)
pub fn apply_to_element(&self, element: &NodeRef)
Apply BudouX boundaries to a DOM element.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HTMLProcessor
impl !RefUnwindSafe for HTMLProcessor
impl !Send for HTMLProcessor
impl !Sync for HTMLProcessor
impl Unpin for HTMLProcessor
impl !UnwindSafe for HTMLProcessor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more