Personalized Targeted XF is rendering with full HTML DOM on page
I have a XF which is targeted using context hub and when i try to refer it via OTB Experience-Fragment component then everything works fine like its rendering the proper content and not full html in dom

but when i do the same with custom xf reference component then its loading the full html in dom

I am using the same code as OTB to render the html and making sure my XF path is till /jcr:content since in OTB component also we load the path till /jcr:content. Also if i give a non targeted XF then everything works fine