Skip to content

Commit

Permalink
Add marquee
Browse files Browse the repository at this point in the history
Adding marquee tag and attributes to be allowed on messageboard and inbox
  • Loading branch information
SalleeMatthew authored and smile0711 committed Sep 18, 2024
1 parent ccf19c4 commit 0855ab5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions api/src/services/inbox/inbox.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ export class InboxService {
'i',
'kbd',
'mark',
'marquee',
'q',
'rb',
'rp',
Expand Down Expand Up @@ -147,6 +148,7 @@ export class InboxService {
font: ['color', 'size'],
map: [ 'name' ],
area: [ 'alt', 'title', 'href', 'coords', 'shape', 'target', 'class' ],
marquee: ['width', 'height', 'direction'],
},
});
return cleanInfo;
Expand Down
3 changes: 2 additions & 1 deletion api/src/services/messageboard/messageboard.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export class MessageboardService {
allowedTags: [
'address', 'article', 'aside', 'footer', 'header', 'h1', 'h2', 'h3', 'h4',
'h5', 'h6', 'hgroup', 'main', 'nav', 'section', 'blockquote', 'dd', 'div',
'dl', 'dt', 'figcaption', 'figure', 'hr', 'li', 'main', 'ol', 'p', 'pre',
'dl', 'dt', 'figcaption', 'figure', 'hr', 'li', 'main', 'marquee', 'ol', 'p', 'pre',
'ul', 'a', 'abbr', 'b', 'bdi', 'bdo', 'br', 'cite', 'code', 'data', 'dfn',
'em', 'i', 'kbd', 'mark', 'q', 'rb', 'rp', 'rt', 'rtc', 'ruby', 's', 'samp',
'small', 'span', 'strong', 'sub', 'sup', 'time', 'u', 'var', 'wbr', 'caption',
Expand All @@ -94,6 +94,7 @@ export class MessageboardService {
font: [ 'color', 'size' ],
map: [ 'name' ],
area: [ 'alt', 'title', 'href', 'coords', 'shape', 'target', 'class' ],
marquee: ['width', 'height', 'direction'],
},
});
return cleanInfo;
Expand Down

0 comments on commit 0855ab5

Please sign in to comment.