[yunqa.de] Re: DiHTMLParser and multiple class values

  • From: Delphi Inspiration <delphi@xxxxxxxx>
  • To: yunqa@xxxxxxxxxxxxx
  • Date: Mon, 30 Jan 2012 16:16:42 +0100

On 30.01.2012 11:51, Gousti Fruit wrote:

> Your example will not work if the p tag is written like this:
> <p class="c1 c2">test</p>
> -> it will return only one value "c1 c2" for the class attribute.

TDIHtmlParser does not split multiple class items in a single class
attribute value. It passes them on to the application as one string
value only.

> As a workaround, for now I'm using this "search whole word inside
> string" function:

Yes, the application should process the value according to its needs,
similar to the example you have given.

Ralf
_______________________________________________
Delphi Inspiration mailing list
yunqa@xxxxxxxxxxxxx
//www.freelists.org/list/yunqa



Other related posts: