Binaergewitter/binaergewitter.github.com — Issue #8: Fix &hellip; character in feed
Author: rb2k
Created: 2012-01-25 00:03:53+00:00
State: open

> Some feed readers do not like this, especially if they use validating xml components, as there is no DTD for the Trac RSS XML, and the hellip entity is not recognized. A quick workaround(fix?) is to use the numeric entity reference instead, which is: …

In combination with https://github.com/imathis/octopress/blob/master/plugins/octopress_filters.rb:

# Improved version of Liquid's truncate:
# - Doesn't cut in the middle of a word.
# - Uses typographically correct ellipsis (…) insted of '...'
def truncate(input, length)
if input.length > length && input[0..(length-1)] =~ /(.+)\b.+$/im
$1.strip + ' …'
else
input
end
end

==> NO ME GUSTA