export HTMLText
fixup comparisons and add test suite
add getters/setters and use them in test