‪TYPO3CMS  11.5
TYPO3\CMS\Core\Utility\DiffUtility Class Reference

Public Member Functions

string makeDiffDisplay ($str1, $str2)

Public Attributes

bool $stripTags = true

Detailed Description

This class has functions which generates a difference output of a content string

Definition at line 24 of file DiffUtility.php.

Member Function Documentation

◆ makeDiffDisplay()

string TYPO3\CMS\Core\Utility\DiffUtility::makeDiffDisplay (   $str1,

This will produce a color-marked-up diff output in HTML from the input strings.

string$str1String 1
string$str2String 2
‪string Formatted output.

Definition at line 39 of file DiffUtility.php.

Referenced by TYPO3\CMS\Workspaces\Service\HistoryService\getDifferences().

Member Data Documentation

◆ $stripTags

bool TYPO3\CMS\Core\Utility\DiffUtility::$stripTags = true

If set, the HTML tags are stripped from the input strings first.

Definition at line 30 of file DiffUtility.php.