mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-25 10:09:20 +03:00
Road to the MIT
This commit is contained in:
parent
13d05dc2ff
commit
aa5d3fc89d
75 changed files with 392 additions and 2283 deletions
|
|
@ -239,7 +239,8 @@ class HtmlUtils
|
|||
$oWrapHtml->setAttribute($sKey, $sValue);
|
||||
}
|
||||
|
||||
$oWrapDom = $oDom->createElement('div', '___xxx___');
|
||||
$sRndId = '__wrp__'.md5(APP_START.rand(10000, 99999).APP_START).'__';
|
||||
$oWrapDom = $oDom->createElement('div', $sRndId);
|
||||
$oWrapDom->setAttribute('data-x-div-type', 'body');
|
||||
foreach ($aBodylAttrs as $sKey => $sValue)
|
||||
{
|
||||
|
|
@ -250,7 +251,7 @@ class HtmlUtils
|
|||
|
||||
$sWrp = $oDom->saveHTML($oWrapHtml);
|
||||
|
||||
$sResult = \str_replace('___xxx___', $sResult, $sWrp);
|
||||
$sResult = \str_replace($sRndId, $sResult, $sWrp);
|
||||
}
|
||||
|
||||
$sResult = \str_replace(\MailSo\Base\HtmlUtils::$KOS, ':', $sResult);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue