NOJIRA mimic behavior of DomDocument when processing returns to prevent link creation from failing
NOJIRA prevent truncation of string in the midst of a tag
NOJIRA add getTagForPrimaryRepresentation() method
NOJIRA use caTruncateStringWithEllipsis() helper instead of homebrew truncation code
NOJIRA prevent warnings with Pawtucket2-ported code