From fdb58215c016579894d63aea4b31821fa170667a Mon Sep 17 00:00:00 2001 From: Trinity Pointard Date: Sat, 2 Jan 2021 00:13:54 +0100 Subject: [PATCH] add dir to allowed attributes --- plume-models/src/safe_string.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plume-models/src/safe_string.rs b/plume-models/src/safe_string.rs index 5f36ea3b..510cfb3e 100644 --- a/plume-models/src/safe_string.rs +++ b/plume-models/src/safe_string.rs @@ -11,14 +11,13 @@ use std::{ borrow::{Borrow, Cow}, fmt::{self, Display}, io::Write, - iter, ops::Deref, }; lazy_static! { static ref CLEAN: Builder<'static> = { let mut b = Builder::new(); - b.add_generic_attributes(iter::once("id")) + b.add_generic_attributes(&["id", "dir"]) .add_tags(&["iframe", "video", "audio", "label", "input"]) .id_prefix(Some("postcontent-")) .url_relative(UrlRelative::Custom(Box::new(url_add_prefix)))