On Wed, Aug 6, 2014 at 9:58 PM, Andrew Haines <andrewd...@aol.com> wrote: > On 08/06/14 13:50, Marcos Douglas wrote: >> Hi, >> >> Someone knows a fast html parser to use in Pascal code? >> >> I need something like this: >> >> HTML: >> <select name="sel_x"> >> <option>1</option> >> <option>2</option> >> </select> >> >> I need a function/object to give me only the values: >> 1 >> 2 >> >> Something like: >> S := GetHTMLValues('sel_x'); >> >> R > > There is the unit fasthtmlparser included with fpc in the packages/chm > folder. > > It is pretty basic and just has callbacks for tags and text. I don't > think it's smart enough to tell you of the > > name="sel_x" part of your tag.
You're right, but I change my code to use fasthtmlparser and worked (at least for now). Thank you. > Maybe it can be improved. I agree. If I change something, I'll send a patch. Marcos Douglas _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal