StringUtilsDiffStringHtml Method |
Generate a diff string of the form s1 + conjunction + s2 where s1
and s2 are marked with SPAN tags, having CssClass "diff", marking
the changed portions of each string. The result is encoded for
HTML.
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public static string DiffStringHtml(
string s1,
string s2,
string conjunction,
DiffOptions options
)
Public Shared Function DiffStringHtml (
s1 As String,
s2 As String,
conjunction As String,
options As DiffOptions
) As String
Parameters
- s1
- Type: SystemString
The first string to compare. - s2
- Type: SystemString
The second string to compare. - conjunction
- Type: SystemString
The conjunction to use when joining s1 and s2. - options
- Type: NetQuarryDiffOptions
Diff options.
Return Value
Type:
StringThe resulting diff string, HTML encoded.
See Also