Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7731543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T06:30:21+00:00 2026-06-01T06:30:21+00:00

Basically i have a webpage with embedded css and JavaScript, so what i want

  • 0

Basically i have a webpage with embedded css and JavaScript, so what i want to do is extract only the HTML itself, from texts to tables , images and what not.

So far i have the whole web page stored into a string called “html” the contents of this page is just the facebook hompepage for example,but as you will see there’s all scripts and other embedded stuff which i don’t want to have.

   HTMLEdit = //webpage I chose to store in here//
   string html = HTMLEdit.DocumentText;
   String result = "this i want to only contain the <head>,<body>,<foot>."

I am only interested in displaying the result witch only contains html, i don’t want the JavaScript or css or any other stuff

I have looked at the agility pack but there’s no documentation on there website to do this and this is my first ever c# project i have decided to make, so excuse my ignorance if i don’t make sense.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T06:30:22+00:00Added an answer on June 1, 2026 at 6:30 am

    See this question
    HTML Agility Pack strip tags NOT IN whitelist

    Maybe adapt that answer, and drop link and script tags.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I basically have three tables, posts, images and postimages (this simply contains the ids
Basically, I want to scrape some options data daily from Yahoo! Finance. I have
Basically, I have this webpage that is the header on any page you go
I have some localization problems in my webpage. There are basically two problems (that
I have webpage I downloaded with C++ to a string, and it is basically
I have made the following webpage for generating interactive todo lists: http://robert-kent.com/todo/todo.php Basically, the
I have a webpage from the Fogbugz bug tracking system, and using a plugin
I have to include a webpage inside my webpage's div. I want somehting like
I have a financial calculator in MS excel, and I basically want to display
I basically have a webpage with two frames. -Left for nav -Right for main

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.