adding allow_attributes feature from https://github.com/DouweM/wysihtml5/blob/79a76731549087611b3cb6087f22088209f494ad/src/dom/parse.js