Search found 4 matches

by reing
Tue Apr 07, 2015 8:47 pm
Forum: iMacros for Firefox
Topic: How to extract plain text that hasn't got a html tag
Replies: 8
Views: 5838

Re: How to extract plain text that hasn't got a html tag

chivracq wrote:

Code: Select all

SET Extracted_Sentence EVAL("var s='{{!EXTRACT}}'; var x; x=s.split('<br>'); x[1];")
PROMPT Extracted_Sentence:<BR>_{{Extracted_Sentence}}_
The single <br> statement in the split() did it. It works great. Thank you very much :D
by reing
Tue Apr 07, 2015 7:29 pm
Forum: iMacros for Firefox
Topic: How to extract plain text that hasn't got a html tag
Replies: 8
Views: 5838

Re: How to extract plain text that hasn't got a html tag

Yep, but I need the exact Extract of the Body Element and what will be changing/remaining constant between different Loops to build a Double 'split()' before and after your Sentence, I cannot use your "fake" "<!-- without spaces-->" / "<!-- with space after br-->", 'split()' then searches for these...
by reing
Tue Apr 07, 2015 5:42 pm
Forum: iMacros for Firefox
Topic: How to extract plain text that hasn't got a html tag
Replies: 8
Views: 5838

Re: How to extract plain text that hasn't got a html tag

Yep, no pb, you have several Solutions... (I get you all excited, I guess...!) There is nothing wrong with using 'TYPE=BODY' together with 'EXTRACT=TXT', but it looks like your Page contains a Table as well and other (HTML) Elements so you'll end up selecting everything on the Page and that might b...
by reing
Tue Apr 07, 2015 2:43 pm
Forum: iMacros for Firefox
Topic: How to extract plain text that hasn't got a html tag
Replies: 8
Views: 5838

How to extract plain text that hasn't got a html tag

Hi, While I'm successful most of the time writing the code for iMacros, I'm having a problem now with the extraction of text from a website. The text is not inside a html tag and has no id. It looks like this: <html> <body> <table></table> <h4></h4> <br></br> the leaves on this tree are green <br></...