fix(ui): preserve target attribute in DOMPurify config for markdown links (#28598)
This commit is contained in:
@@ -34,7 +34,7 @@ const config = {
|
|||||||
FORBID_TAGS: ["style"],
|
FORBID_TAGS: ["style"],
|
||||||
FORBID_CONTENTS: ["style", "script"],
|
FORBID_CONTENTS: ["style", "script"],
|
||||||
ADD_TAGS: ["svg", "path"],
|
ADD_TAGS: ["svg", "path"],
|
||||||
ADD_ATTR: ["d", "viewBox", "preserveAspectRatio", "xmlns"],
|
ADD_ATTR: ["d", "viewBox", "preserveAspectRatio", "xmlns", "target"],
|
||||||
}
|
}
|
||||||
|
|
||||||
const iconPaths = {
|
const iconPaths = {
|
||||||
|
|||||||
Reference in New Issue
Block a user