forked from sparklemotion/nokogiri
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It turns out that the missing closing tags was caused by an encoding exception and misuse of the Encoder API. The exception was due to the » entity which isn't supported by the Shift_JIS encoding which caused the encoder to stop half way while it's converting the UTF-16 content of the document to Shift_JIS. To fix this, we convert all characters not supported by the current encoding to html entities.
- Loading branch information
Showing
2 changed files
with
16 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters