Diff deprecated
class Diff extends Diff (View source)
deprecated 4.13.0 Will be replaced with SilverStripe\View\Parsers\HtmlDiff
Class representing a 'diff' between two sequences of strings.
Properties
public static | $html_cleaner_class |
Methods
Attempt to clean invalid HTML, which messes up diffs.
Details
__construct($from_lines, $to_lines)
No description
static mixed|string
cleanHTML(string $content, HTMLCleaner $cleaner = null)
deprecated
deprecated 4.13.0 Will be removed without equivalent functionality
Attempt to clean invalid HTML, which messes up diffs.
This cleans code if possible, using an instance of HTMLCleaner
NB: By default, only extremely simple tidying is performed, by passing through DomDocument::loadHTML and saveXML
static string
compareHTML(string $from, string $to, bool $escape = false)
deprecated
deprecated 4.13.0 Will be replaced with SilverStripe\View\Parsers\HtmlDiff::compareHTML()
No description
static array
getHTMLChunks(string|bool|array $content)
deprecated
deprecated 4.13.0 Will be removed without equivalent functionality
No description