atrsimilar_render_new

Versions
6.1
atrsimilar_render_new($diff)

Render the new string with insertions.

Code

atr/modules/atrsimilar/includes/atrsimilar.result.inc, line 92

<?php
function atrsimilar_render_new($diff) {
  $rendered = '';

  foreach ($diff[1] as $i => $token) {
    $string = htmlspecialchars($token['string']);
    $rendered .= $token['common'] == TRUE ? $string : theme('atrsimilar_token_new', $string);
  }

  return $rendered;
}
?>