}
/**
- * @static
* @param string $msg
*
* @return mixed
*/
public static function escapeWhiteSpace( $msg ) {
- $msg = preg_replace( '/^ /m', '  ', $msg );
- $msg = preg_replace( '/ $/m', '  ', $msg );
- $msg = preg_replace( '/ /', '  ', $msg );
+ $msg = preg_replace( '/^ /m', "\u{00A0} ", $msg );
+ $msg = preg_replace( '/ $/m', " \u{00A0}", $msg );
+ $msg = preg_replace( '/ /', "\u{00A0} ", $msg );
return $msg;
}
* @return string
*/
protected function contextLine( $line ) {
- return $this->wrapLine( ' ', 'diff-context', $line );
+ return $this->wrapLine( "\u{00A0}", 'diff-context', $line );
}
/**
* @return string
*/
protected function emptyLine() {
- return '<td colspan="2"> </td>';
+ return "<td colspan=\"2\">\u{00A0}</td>";
}
/**