attribute value cannot be undefined
don't strip html for input
fix null exception if attr value didn't exist