Embedding .HTML on a Sharepoint Page

%3CLINGO-SUB%20id%3D%22lingo-sub-2972045%22%20slang%3D%22en-US%22%3EEmbedding%20.HTML%20on%20a%20Sharepoint%20Page%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2972045%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20trying%20to%20display%20a%20.HTML%20file%20using%20a%20sharepoint%20web%20part.%20Is%20there%20anyway%20to%20do%20this%20beyond%20hosting%20the%20.html%20file%20and%20embedding%20through%20an%20iframe%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2972045%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2972296%22%20slang%3D%22en-US%22%3ERe%3A%20Embedding%20.HTML%20on%20a%20Sharepoint%20Page%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2972296%22%20slang%3D%22en-US%22%3EIn%20the%20classic%20way%20I%20think%20you%20can%20do%20this%20with%20the%20content%20editor%20webpart.%3CBR%20%2F%3EIn%20modern%20I%20think%20you%20can%20do%20this%20with%20the%20SPFX%20Script%20editor%20webpart%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fpnp%2Fsp-dev-fx-webparts%2Ftree%2Fmain%2Fsamples%2Freact-script-editor%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fpnp%2Fsp-dev-fx-webparts%2Ftree%2Fmain%2Fsamples%2Freact-script-editor%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EHTH!%3C%2FLINGO-BODY%3E
Occasional Visitor

I'm trying to display a .HTML file using a sharepoint web part. Is there anyway to do this beyond hosting the .html file and embedding through an iframe?

1 Reply
In the classic way I think you can do this with the content editor webpart.
In modern I think you can do this with the SPFX Script editor webpart:
https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-script-editor

HTH!