Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c7861328 authored by Pierre-Alain Bandinelli's avatar Pierre-Alain Bandinelli
Browse files

Fixing diff char being left over

parent f1e5dc21
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -239,9 +239,8 @@ class HtmlUtils
				$oWrapHtml->setAttribute($sKey, $sValue);
			}

			#$oWrapDom = $oDom->createElement('div', '___xxx___');
			$rand_str = base64_encode(random_bytes(32));
+     $oWrapDom = $oDom->createElement('div', $rand_str);
      $oWrapDom = $oDom->createElement('div', $rand_str);
			$oWrapDom->setAttribute('data-x-div-type', 'body');
			foreach ($aBodylAttrs as $sKey => $sValue)
			{
@@ -252,7 +251,6 @@ class HtmlUtils

			$sWrp = $oDom->saveHTML($oWrapHtml);

			#$sResult = \str_replace('___xxx___', $sResult, $sWrp);
			$sResult = \str_replace($rand_str, $sResult, $sWrp);
		}