DiffUtility
This class has functions which generates a difference output of a content string
Table of Contents
Properties
- $stripTags : bool
- If set, the HTML tags are stripped from the input strings first.
Methods
- makeDiffDisplay() : string
- Returns a color-marked-up diff output in HTML from the input strings.
Properties
$stripTags
If set, the HTML tags are stripped from the input strings first.
public
bool
$stripTags
= true
Methods
makeDiffDisplay()
Returns a color-marked-up diff output in HTML from the input strings.
public
makeDiffDisplay(string $str1, string $str2[, DiffGranularity $granularity = DiffGranularity::WORD ]) : string
Parameters
- $str1 : string
- $str2 : string
- $granularity : DiffGranularity = DiffGranularity::WORD