Forum Discussion
pasquaale
Aug 15, 2023Copper Contributor
Retrieve content of an aspx page
Hey everyone, how can we retrieve the content of our aspx pages. Specifically, we need to extract the text of each aspx page in Site Pages. Im not asking for a "save as html" or "press command+p" so...
- Aug 15, 2023
Hi pasquaale,
are you talking about modern pages?
If you install "PnP Powershell" (https://pnp.github.io/powershell/) then you can use the "Export-PnPPage" commandExport-PnPPage -Identity Home.aspx -Out Home.xml
It will export the page including the text content into an XML file using the PnP Provisioning Schema (https://github.com/pnp/PnP-Provisioning-Schema)
Best Regards,
Sven
pasquaale
Aug 17, 2023Copper Contributor
SvenSieverding Matthias_Glubrecht thank you very much, this will help me a lot!