How to get html source code from body field in node type edit form?
The basic text format filters out all but a few HTML tags.  You want to select the Full HTML text format to keep your divs and classes.