pagser icon indicating copy to clipboard operation
pagser copied to clipboard

Support case insensitive meta attributes?

Open keyle opened this issue 2 years ago • 0 comments

Some meta attributes can be capitalised, causing to have to duplicate them as below:

        Author1   []string `pagser:"meta[name='author']->attrSplit(content)"`
	Author2   []string `pagser:"meta[name='Author']->attrSplit(content)"`
	Desc1     []string `pagser:"meta[name='description']->attrSplit(content)"`
	Desc2     []string `pagser:"meta[name='Description']->attrSplit(content)"`
	Keywords1 []string `pagser:"meta[name='keywords']->attrSplit(content)"`
	Keywords2 []string `pagser:"meta[name='Keywords']->attrSplit(content)"`

Any suggestion for this?

go 1.21.0 / github.com/foolin/pagser v0.1.5

Thanks!

keyle avatar Sep 04 '23 07:09 keyle