Remove leading and ending new lines when formatting text as HTML