You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the result is <ins class="mod">abcd</span>
But it should be same. :)
If I change it to below, except the wrong result, the close tag lost also.
$a = '<span>你好</span>';
$b = '你好';
$diffConfig = new HtmlDiffConfig();
$diffConfig->setEncoding('UTF-8');
$diff = HtmlDiff::create($a, $b, $diffConfig);
Thanks for your replay. :)
Acctually it has same problems in the demo http://php-htmldiff.caxy.com/. At beginning I thought the demo works well, just my code has problems, but then I checked the html of diff result of the demo, same issue with me, just the css style don't display the changing.
if you check the html source code, you will find the problem. :D
and there is another problem, the the old text has newline symbols \r\n or \n, after diffing, the newline symbols was removed, i think it should keep any text in the old text.
$a =
"<span>abcd</span>";
$b =
'abcd';
$diffConfig = new HtmlDiffConfig();
$diffConfig->setEncoding('UTF-8');
$diff = HtmlDiff::create($a, $b, $diffConfig);
the result is
<ins class="mod">abcd</span>
But it should be same. :)
If I change it to below, except the wrong result, the close tag lost also.
$a
= '<span>你好</span>';
$b
= '你好';
$diffConfig = new HtmlDiffConfig();
$diffConfig->setEncoding('UTF-8');
$diff = HtmlDiff::create($a, $b, $diffConfig);
<ins class="mod"><ins class="diffmod"></ins>你好</span>
The text was updated successfully, but these errors were encountered: