shaping html string to human readable shape