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

Public Member Functions

 makeDiffDisplay (string $str1, string $str2, DiffGranularity $granularity=DiffGranularity::WORD)

Public Attributes

bool $stripTags = true

Detailed Description

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

Definition at line 27 of file DiffUtility.php.

Member Function Documentation

◆ makeDiffDisplay()

TYPO3\CMS\Core\Utility\DiffUtility::makeDiffDisplay ( string  $str1,
string  $str2,
DiffGranularity  $granularity = DiffGranularity::WORD 

Returns a color-marked-up diff output in HTML from the input strings.

Definition at line 37 of file DiffUtility.php.

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 32 of file DiffUtility.php.