fix(mu): email content not displayed due to sanitize html
(cherry picked from commit 2f06e52d81864a62d6e588bb24a6845e20371bf4)
This commit is contained in:
@@ -316,10 +316,9 @@ void main() {
|
||||
// arrange
|
||||
const eventDescription = '\nhttps://example1.com\nhttps://example2.com';
|
||||
const expectedEventDescription = '<html><head></head><body>'
|
||||
'<a href="https://example1.com" rel="noreferrer" style="white-space: nowrap; word-break: keep-all" target="_blank">example1.com</a>'
|
||||
'<br>'
|
||||
'<a href="https://example1.com" target="_blank" rel="noreferrer" style="white-space: nowrap; word-break: keep-all;">example1.com</a>'
|
||||
'<br>'
|
||||
'<a href="https://example2.com" target="_blank" rel="noreferrer" style="white-space: nowrap; word-break: keep-all;">example2.com</a>'
|
||||
'<a href="https://example2.com" rel="noreferrer" style="white-space: nowrap; word-break: keep-all" target="_blank">example2.com</a>'
|
||||
'</body></html>';
|
||||
final blobId = Id('abc123');
|
||||
final calendarEvent = CalendarEvent(
|
||||
@@ -373,10 +372,9 @@ void main() {
|
||||
'\n<script>alert(1)</script>'
|
||||
'\n<a href="javascript:alert(1)">href xss</a>';
|
||||
const expectedEventDescription = '<html><head></head><body>'
|
||||
'<a href="https://example1.com" rel="noreferrer" style="white-space: nowrap; word-break: keep-all" target="_blank">example1.com</a>'
|
||||
'<br>'
|
||||
'<a href="https://example1.com" target="_blank" rel="noreferrer" style="white-space: nowrap; word-break: keep-all;">example1.com</a>'
|
||||
'<br>'
|
||||
'<a href="https://example2.com" target="_blank" rel="noreferrer" style="white-space: nowrap; word-break: keep-all;">example2.com</a>'
|
||||
'<a href="https://example2.com" rel="noreferrer" style="white-space: nowrap; word-break: keep-all" target="_blank">example2.com</a>'
|
||||
'<br>'
|
||||
'<br>'
|
||||
'<a>href xss</a>'
|
||||
|
||||
Reference in New Issue
Block a user