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
This will produce 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()

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

public makeDiffDisplay(string $str1, string $str2) : string
Parameters
$str1 : string

String 1

$str2 : string

String 2

Return values
string

Formatted output.


        
On this page

Search results