Fixed broken detection of void elements in truncateHTML()
Merge branch '2.0'