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 6863641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:48:30+00:00 2026-05-27T02:48:30+00:00

I am parsing a table of a HTML page but when I display the

  • 0

I am parsing a table of a HTML page but when I display the data, there are random characters added like in this example here:

Preowiveding but it should be Preding.

I dont know if that is a security feature to prevent people from parsing their data.
It is strange because sometimes the text is shown right and another text is shown wrong…

The page were I get the data from is this one here.
The HTML code of the table looks a bit strange:

<a target='_blank' href='#' class='draggableVerein' >&#76;<span style='display:none;'>&#105;<span style='display:none;'>&#115;&#105;&#118;&#98;&#97;</span><u></u>&#118;&#98;&#97;&#111;</span><u></u>&#105;&#101;&#98;&#101;&#110;&#97;&#117;</a>

Between the text there are span and u tags that seem to be doing nothing in the Browser but produce this errors when parsing.

I use Ben Reeves HTML Parser.
Example:

HTMLNode *node = [rowNode findChildWithAttribute:@"class" matchingName:@"rang" allowPartial:TRUE];
team.rang = [node allContents];

edit:

Now I tried libXML2 with HPPLE:

NSArray *elements  = [xpathParser searchWithXPathQuery:@"//table[2]/tr[5]/td/a"];
// Access the first cell
TFHppleElement *element = [elements objectAtIndex:0];

NSString *content = [element content];  
NSLog(@"content: %@",content);

Output is ersdorfinstead of Eggersdorf.
HTML of this example:

<a target='_blank' href='/datenservice/portal/verein/aktuelles.ds?vereinsNr=8070&sektionsId=485215725|665233118344931246&awVerband=ST_' class='draggableVerein' drag_img='/netzwerk/imagedownload/379402779304830775_383470150383145150-60-60-EfcSAtkX.jpg'>&#69;&#103;&#103;&#101;&#114;&#115;&#100;&#111;&#114;&#102;</a>

It is a really strange code.
Any tips?

  • 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-05-27T02:48:31+00:00Added an answer on May 27, 2026 at 2:48 am

    It looks like there are two things going on here.

    1. It’s using HTML character entities to specify common characters (i.e. &#76; instead of L). This may be an attempt at obfuscation.
    2. It uses <span style='display:none'>…</span> to tell the browser not to display certain text. This may be an attempt to introduce invisible garbage into the text. The browser will not display it but an HTML parser will still spit out that text.

    If you want to discard the garbage text your code will have to process <span> & </span> tags and automatically discard any text with a style set to display:none.

    NB: The source for the page you linked to has a copyright statement (in German).
    IANAL, but you may need a translator and a lawyer to make sure you are not violating their terms of service by scraping the page.

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

Sidebar

Related Questions

I have trouble parsing a HTML table using Nokogiri and Ruby. My HTML table
When parsing an xml file in android, I'm doing like this: try { InputStream
Im parsing the source of a website and Im using this regex: /page\.php\?id\=([0-9]*)\\>(.*)\<\/a\>\<\/span\>/.match(self.agent.page.content) self.agent.page.content
I have question about parsing in Html helper : I have sth like: @foreach
I have a problem parsing a XML file which contains special characters like ,
I'm parsing out an HTML table and building an array based on the row
Trying to print out some html forms but I get a parsing syntax error.
I need to retrieve some data from a web page. After analysing the HTML
I need some advice and possible code examples for parsing an HTML table from
I am parsing an HTML page with DOM and XPath in PHP. I have

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.