Given two strings ($old and $new) return a diff string in HTML markup
Available since version 3.0.144.
Usage
// basic usage
$string = $wireTextTools->diffMarkup(string $old, string $new);
// usage with all arguments
$string = $wireTextTools->diffMarkup(string $old, string $new, array $options = []);
Arguments
Name | Type(s) | Description |
---|---|---|
old | string | Old string value |
new | string | New string value |
options (optional) | array | Options to modify behavior:
|
Return value
string
WireTextTools methods and properties
API reference based on ProcessWire core version 3.0.236