diff
diff
Loops over differences between one string (or array) and
another. If strings are passed in they are stripped of HTML tags and compared
word by word. After the tags has finished executing, the complete array of diffs
is returned.
Metadata
Attributes
Name |
Type |
Required |
Default |
Options |
Description |
old |
string |
No |
|
|
The old value. This should be a string (will be stripped of HTML tags and compared by word) |
new |
string |
No |
|
|
The new value. This should be in the same format as old. |
diff |
string |
No |
diff |
|
The variable that the result is stored in. During execution this variable contains individual diff structs: { diff="+|-|=", oldindex, oldvalue, newindex, newvalue }. After execution this variable contains an array of all diffs. Defaults to "diff" |