improve HTML detection
add toString(Map)