|
|
|
@ -82,7 +82,7 @@ export const getEmailDetailAction = async (params) => {
|
|
|
|
|
mailType = mailType === '' && (result.MailContent||'').includes('<html') ? 'text/html' : mailType;
|
|
|
|
|
|
|
|
|
|
const delLinefeed = mailType === 'text/html' ? (result.MailContent||'').includes('<html') ? true : false : true;
|
|
|
|
|
const cleanContent = (result.MailContent || '').replace(/\r\n/g, delLinefeed ? '' : '<br>');
|
|
|
|
|
const cleanContent = (result.MailContent || '').replace(/\r\n/g, delLinefeed ? '' : ''); // <br>
|
|
|
|
|
|
|
|
|
|
const { bodyContent, bodyText } = mailType === 'text/html' ? parseHTMLString(cleanContent, true) : { bodyContent: '', bodyText: '' };
|
|
|
|
|
|
|
|
|
|