Copy html from body

Originally Posted 11 May 2017, 1:14 pm EST

  • Originally Posted 11 May 2017, 1:14 pm EST

    Hi,

    I'm trying to copy inner html of the editor i.e everything inside body tag, however when i do
    Editor.Document.InnerXml 
    its return entire xhtml code which i dont want.

    How do i get just content inside body only ?

    Thanks
  • Marked as Answer

    Reply

    Hi,

    We are sorry to mention however, it is directly not possible to get only the xml enclosed within Body tag. As a workaround you can try to traverse the retrieved xml as a string and trim it to get only the content which is enclosed in Body tag.

    Hope it helps.

    Thanks,
    Akshay
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels