Struct html_node::UnsafeText
source · pub struct UnsafeText {
pub text: String,
}
Expand description
An unsafe text node.
This can be created using unsafe_text!
.
Warning
Node::UnsafeText
is not escaped when rendered, and as such, can allow
for XSS attacks. Use with caution!
Fields§
§text: String
The text of the node.
Trait Implementations§
source§impl Clone for UnsafeText
impl Clone for UnsafeText
source§fn clone(&self) -> UnsafeText
fn clone(&self) -> UnsafeText
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for UnsafeText
impl Debug for UnsafeText
Auto Trait Implementations§
impl RefUnwindSafe for UnsafeText
impl Send for UnsafeText
impl Sync for UnsafeText
impl Unpin for UnsafeText
impl UnwindSafe for UnsafeText
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