test for html entities
memory optimizations