remove html tags from message and invalidate empty messages