Permalink
Browse files

Ignore ­, as some blog software (dotclear2) misuse it.

  • Loading branch information...
1 parent a3c3ef6 commit bc6b5c2ba14d552ad3c5dbd57530c9d4855068f2 @lnussbaum lnussbaum committed Jul 27, 2009
View
@@ -1,9 +1,10 @@
-Ruby-Feedparser 0.7 (10/05/2009)
+Ruby-Feedparser 0.7 (27/07/2009)
================================
* Handled several creators per feed item
* Fix bug with urls into tag attributes
* Better item categories support
* Reworked text output formatting
+* Ignore ­, as some blog software (dotclear2) misuse it.
Ruby-Feedparser 0.6 (23/07/2008)
================================
@@ -399,7 +399,11 @@ def HTML2TextParser.entities
"euro" => 8364
}
def unknown_entityref(ref)
- if HTML_ENTITIES.has_key?(ref)
+ # hack to avoid considering ­, as it is misused by some blog software (dotclear2)
+ # see http://www.cs.tut.fi/~jkorpela/shy.html
+ if ref == 'shy'
+ handle_data('')
+ elsif HTML_ENTITIES.has_key?(ref)
handle_data([HTML_ENTITIES[ref]].pack('U*'))
else
handle_data(ref)
View

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
View

Large diffs are not rendered by default.

Oops, something went wrong.
View

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

0 comments on commit bc6b5c2

Please sign in to comment.