Setting new Attributes for a tag after parsing
Brought to you by:
derrickoswald
Dear All,
I am using htmlparser v1.6 and i have found out an error while adding new attributes. The error is as follows:
Given Input:
<img src="..." />
Expected Output:
<img src="..." newAttribute=value />
Output as of now:
<img src="..." /newAttribute=value>
I think this is happening because the text or content between "<" and ">" are treated as attributes with space being the separator.
Please kindly look into this.
thank you,
Vijaya Bhaskar Peddinti