You are here

function diff_get_inline in Diff 7.3

Same name and namespace in other branches
  1. 6.2 diff.module \diff_get_inline()
  2. 7.2 diff.module \diff_get_inline()

Render and markup a diff of two strings into HTML markup.

Parameters

string $a: The source string to compare from.

string $b: The target string to compare to.

Return value

string String containing HTML markup.

1 call to diff_get_inline()
diff_inline_show in ./diff.pages.inc
Show the inline diff for a given node, vid.

File

./diff.module, line 593
Provides functionality to show a diff between two node revisions.

Code

function diff_get_inline($a, $b) {
  $diff = new DrupalDiffInline($a, $b);
  return $diff
    ->render();
}