revert: 不要处理 html 格式的文本邮件

dev/RoosterEditor
Lei OT 5 months ago
parent 15874bf229
commit 6ce6ae1492

@ -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: '' };

Loading…
Cancel
Save