Loading css and html externally

Hey guys, am trying to load css and html I have stored in my database but the $sce policy isn’t working out for me when I use trust as resourceurl or use the sce globally in my ionic 1 app.js file.

So the html am trying to load is a html snippet loaded in a cms. It contains angular style tags which styles a page based on the page id.

Any assistance with this would be appreciated.