fixed Issue #237
leading and trailing br will be removed. if a br is inside the text or in other elements it will be kept.