mirror of https://github.com/halo-dev/halo
Merge pull request #7695 from ruibaby/feat/comment-a-target
Allow target attribute on <a> tags in comment sanitizerpull/7700/head
parent
3105c53b6f
commit
3345ccb035
|
@ -28,7 +28,9 @@ public abstract class AbstractCommentService {
|
|||
// Allow <s> tag, which is used for strikethrough
|
||||
.addTags("s")
|
||||
// Allow <code> tag's class attribute, for syntax highlighting
|
||||
.addAttributes("code", "class");
|
||||
.addAttributes("code", "class")
|
||||
// Allow <a> tag's target attribute
|
||||
.addAttributes("a", "target");
|
||||
|
||||
protected Mono<User> fetchCurrentUser() {
|
||||
return ReactiveSecurityContextHolder.getContext()
|
||||
|
|
Loading…
Reference in New Issue