Inventory template HTML editor bug

Inventory template HTML editor bug

Hey,

whenever HTML code of an inventory template is saved, the whole code is wrapped in a new DIV element, so it just keeps adding up. It's a minor issue, but maybe you want to fix it.