Skip to content

Add a function for retrieval of charset #1

Open
@cwdgservices

Description

@cwdgservices

I use to use an old version of w3c validation system and I record the Charset. I thought It would be beneficial to your code to make it available.

/**
* Get Charset
*
* Returns the charset found in the document.
*
* @return str
*/
public function getCharset()
{
return (int)$this->getPath('//m:charset');
}

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