Fixed bug with strings rendering.
1 now works with different LF
2 fixed the bug with 'empty string' in cases when htmlspecialchars returns empry string