Customizable sanitizer

I don't like the idea of modifying the state of an argument ): And the attribute builder wouldn't be used outside the htmlelement, right?