Memory optimization
This commit is contained in:
parent
d09d968915
commit
b7f67ec0a6
8 changed files with 203990 additions and 38 deletions
|
@ -43,7 +43,7 @@ module Ebooks
|
|||
end
|
||||
|
||||
### Utility functions
|
||||
|
||||
|
||||
# We don't really want to deal with all this weird unicode punctuation
|
||||
def self.normalize(text)
|
||||
htmlentities.decode text.gsub('“', '"').gsub('”', '"').gsub('’', "'").gsub('…', '...')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue