Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for UTF-8 characters #137

Closed

Conversation

jeroenvdheuvel
Copy link

Support UTF-8 characters by adding an XML opening tag containing the encoding. Got the idea from: http://php.net/manual/en/domdocument.loadhtml.php#95251

By encoding it to UTF-8 after html is loaded, the encoding is preserved. Because the encoding is preserved, the UTF-8 characters are not escaped to htmlentities. So stays .

I prefer this, because I think it's not the responsibility of this class to alter the inner content of html nodes.

… encoding it to UTF-8 after loading, the character set is preserved. Characters are not escaped, since it's not the job of this class.
@tijsverkoyen
Copy link
Owner

Closed, issue is fixed with #131

@jeroenvdheuvel jeroenvdheuvel deleted the utf8_encoding branch May 10, 2016 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants