|
Instantiating a new node with htmlparserJeffrey P. Bigham |
|
Related ArticlesRelated Ads |
Below, I show how to create a new span node using the htmlparser interface. A common error is forgetting to set the end tag. One would think that this would be automatic for tags that require it, but, as opposed to other HTML libraries, there might be advantages in htmlparser not forcing users to produce perfect HTML.
This results in the following:
|
|
|
||