Display dot correctly when they are at the right.
Replace safe_concat with concat.
Add missing html_safe where it is necessary.