We are using the headless architecture to display the content from AEM in another application.
We wants to extract only the partial content from the page . By using the body selector we are able to get the necessary info but its also coming extra tags which are not needed for us like (html,head(empty tag) and even body also.)..
We want only Body content , we dont want the body tag as well. Is there any way that we can extract that by using AEM OOB or in customization as well.