What you are doing is trading maintainability for minor performance gains.
The embedded html creates a real problem with maintennance,and upgrades -- which you release at a regular rate.
The more features you build in, the more bloated the code will become, and you start to have performance penalties in that area as well.
There has to be a balance between core-features and user-defined modifications, and a way for users to add them in as needed.
There has to be a way to take all the user modifications out of the basic code, so that the display options, and such can be carried over from one version to the next.