sane html truncation strategy