html-parsing Questions

7

Solved

I know we can use PHP DOM to parse HTML using PHP, but I have a specific requirement. I have an HTML content like below <p class="Heading1-P"> <span class="Heading1-H"...
Indignity asked 21/8, 2013 at 4:55

5

Solved

When I try to execute a python program from command line, it gives the following error. These errors do not cause any problem to my ouput. I dont want it to be displayed in the commandline Traceba...
Cutlet asked 8/5, 2011 at 6:9

3

Solved

I have a string as a HTML source and I want to check whether the HTML source which is string contains a tag which is not opened. For example the string below contains </u> after WAVEFORM whi...
Scurrile asked 2/7, 2010 at 9:11

6

I am trying to install npm install react-html-parser in my current project. So I am trying to install the npm install react-html-parser but after I use the command. npm ERR! code ERESOLVE npm ERR!...
Itacolumite asked 19/2, 2022 at 13:20

2

Solved

I am using selenium and I need to find the XPaths of some selenium web elements. For example: import selenium.webdriver driver = selenium.webdriver.Firefox() element = driver.find_element_by_xpa...
Brillatsavarin asked 25/6, 2014 at 14:43

3

Solved

I am trying to retrieve some information about a website, I want to look for a specific tag/class and then return the contained text value (innerHTML). This is what I have so far $request = Invoke...
Heinrik asked 28/6, 2019 at 14:53

2

Solved

I apply find_all on a beautifulsoup object, and find something, which is an bs4.element.ResultSet object or a list. I want to further do find_all in there, but it's not allowed on a bs4.element.Res...
Milner asked 18/3, 2016 at 4:17

16

Solved

I want to parse a string which contains HTML text. I want to do it in JavaScript. I tried the Pure JavaScript HTML Parser library but it seems that it parses the HTML of my current page, not from a...
Walz asked 14/5, 2012 at 14:11

9

Solved

I'm making a very simple form in HTML which is viewed in android using the webview which takes in your name using a textbox and when you click on the button, it displays it into a paragraph and it'...
Toadinthehole asked 30/11, 2016 at 13:5

3

Mission is to replace all <img> tags in given string with <div> tags and src property as inner text. In search for the answer I found similar question <?php $content = "this is so...
Thea asked 9/12, 2012 at 1:23

7

Solved

I'm in halfway trough an html parser and found html5 defined explicitly the rules of thumb for parsing ill formed html. (And I used to infer them from DTDs, sigh) I love that fact, but I know well...
Beckmann asked 26/7, 2011 at 5:38

2

Solved

Is there a way to get the original location of an element in a document, ie. the start and end character index, when parsing html/xml in Python? I've looked through the lxml documentation and coul...
Entwistle asked 24/11, 2011 at 14:21

3

I am getting String from backend which has HTML entities. ‘ ’ “ ” which are ‘ ’ “ ” respectivley. I have used different function such as :- var map = { a...
Tutor asked 16/7, 2018 at 10:28

23

Solved

What is the best way to select all the text between 2 tags - ex: the text between all the '<pre>' tags on the page.
Trothplight asked 23/8, 2011 at 20:42

7

Solved

I create a html form on the server side. <form action="." method="POST"> <input type="text" name="foo" value="bar"> <textarea name...
Irretentive asked 4/1, 2021 at 21:59

4

Solved

This is how my text (html) file looks like <!-- | | | This is a dummy comment | | please delete me | | asap | | | ________________________________ | --> this is another line in th...
Gadolinium asked 29/10, 2010 at 20:54

3

Solved

I've been trying different methods of scraping data from this site (http://nflcombineresults.com/nflcombinedata.php?year=1999&pos=WR&college=) and can't seem to get any of them to work. I'v...
Foam asked 27/2, 2014 at 19:37

5

Solved

I have some html that I want to extract text from. Here's an example of the html: <p>TEXT I WANT <i> – </i></p> Now, there are, obviously, lots of <p> tag...
Alber asked 25/2, 2014 at 19:17

2

Solved

Attempting to parse HTML using AngleSharp and running into issues with https://opensource.org/licenses/MS-PL The following code is returning '0' while running in Linqpad var url = @"https://opens...
Leucopoiesis asked 20/9, 2017 at 21:24

4

Solved

I'm having some problems using strip_tags PHP function when the string contains 'less than' and 'greater than' signs. For example: If I do: strip_tags("<span>some text <5ml and then >...
Tove asked 14/2, 2011 at 18:40

5

In a Rails 3.1 app, how can I safely embed some JSON data into an HTML document? Suppose I have this in a controller action: @tags = [ {name:"tag1", color:"green"}, {name:"</script><b...
Hugely asked 26/8, 2011 at 14:8

7

Solved

I am trying to create a BASH script what would extract the data from HTML table. Below is the example of table from where I need to extract data: <table border=1> <tr> <td><b...
Switzerland asked 28/7, 2011 at 5:49

3

Solved

So Im practicing my scraping and I came across something like this: <div class="profileDetail"> <div class="profileLabel">Mobile : </div> 021 427 399 </div> and I need...
Jacquie asked 30/7, 2015 at 18:18

2

Solved

I'm looking to extract text and element type from some HTML. For example: <div> some text <h1>some header</h1> some more text </div> Should give: [{'tag':'div', 'text':'...
Natasha asked 20/4, 2022 at 19:20

7

Solved

I use jQuery method to get some type of html object: var content = $('#cke_ckeditor iframe').contents().find('.cke_show_borders').clone(); Then I want to convert it to string type: console.log(con...
Lutes asked 10/9, 2012 at 2:46

© 2022 - 2025 — McMap. All rights reserved.