Replace echo with `p` or `print_unescaped`

Using echo instead of `p` or `print_unescaped` is a bad style, to prevent people from copying it  I've adjusted it.