Documentation

getDiffHtml

string public
\Bitrix\Main\Text\Diff::getDiffHtml(
 string $a,
 string $b
);

Non-static method gets two versions of text and returns text with visually highlighted differences in versions.

Parameters

ParameterDescriptionVersion
$aFirst version of text for comparison.
$bSecond version of text for comparison.

Example



© «Bitrix24», 2001-2022
Up