fix: Use Dompurify to strip style characters (#2632)
This commit is contained in:
@@ -91,7 +91,6 @@ import contentTypeMixin from 'shared/mixins/contentTypeMixin';
|
||||
import BubbleActions from './bubble/Actions';
|
||||
import { MESSAGE_TYPE, MESSAGE_STATUS } from 'shared/constants/messages';
|
||||
import { generateBotMessageContent } from './helpers/botMessageContentHelper';
|
||||
import { stripStyleCharacters } from './helpers/EmailContentParser';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
@@ -140,7 +139,7 @@ export default {
|
||||
|
||||
if ((replyHTMLContent || fullHTMLContent) && this.isIncoming) {
|
||||
let contentToBeParsed = replyHTMLContent || fullHTMLContent || '';
|
||||
const parsedContent = stripStyleCharacters(contentToBeParsed);
|
||||
const parsedContent = this.stripStyleCharacters(contentToBeParsed);
|
||||
if (parsedContent) {
|
||||
return parsedContent;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user