Skip to content

Support case insensitive meta attributes? #7

Description

@keyle

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions