mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-19 18:21:00 +00:00
Merge pull request 'add dir to allowed attributes' (#860) from dir-safestring into main
Reviewed-on: https://git.joinplu.me/Plume/Plume/pulls/860 Reviewed-by: Mina Galić <me+git@igalic.co> Reviewed-by: KitaitiMakoto <kitaitimakoto@noreply@joinplu.me>
This commit is contained in:
commit
4e3ed0f4c1
1 changed files with 1 additions and 2 deletions
|
@ -11,14 +11,13 @@ use std::{
|
||||||
borrow::{Borrow, Cow},
|
borrow::{Borrow, Cow},
|
||||||
fmt::{self, Display},
|
fmt::{self, Display},
|
||||||
io::Write,
|
io::Write,
|
||||||
iter,
|
|
||||||
ops::Deref,
|
ops::Deref,
|
||||||
};
|
};
|
||||||
|
|
||||||
lazy_static! {
|
lazy_static! {
|
||||||
static ref CLEAN: Builder<'static> = {
|
static ref CLEAN: Builder<'static> = {
|
||||||
let mut b = Builder::new();
|
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"])
|
.add_tags(&["iframe", "video", "audio", "label", "input"])
|
||||||
.id_prefix(Some("postcontent-"))
|
.id_prefix(Some("postcontent-"))
|
||||||
.url_relative(UrlRelative::Custom(Box::new(url_add_prefix)))
|
.url_relative(UrlRelative::Custom(Box::new(url_add_prefix)))
|
||||||
|
|
Loading…
Reference in a new issue