Index: lib/plugins/rfpdf/init.rb =================================================================== --- lib/plugins/rfpdf/init.rb (revision 11398) +++ lib/plugins/rfpdf/init.rb (working copy) @@ -1,8 +1,3 @@ -begin - require('htmlentities') -rescue LoadError - # This gem is not required - just nice to have. -end require('cgi') require 'rfpdf' Index: lib/plugins/rfpdf/lib/tcpdf.rb =================================================================== --- lib/plugins/rfpdf/lib/tcpdf.rb (revision 11398) +++ lib/plugins/rfpdf/lib/tcpdf.rb (working copy) @@ -94,8 +94,6 @@ cattr_accessor :k_path_url_cache @@k_path_url_cache = Rails.root.join('tmp') - cattr_accessor :decoder - attr_accessor :barcode attr_accessor :buffer @@ -223,12 +221,6 @@ #Some checks dochecks(); - begin - @@decoder = HTMLEntities.new - rescue - @@decoder = nil - end - #Initialization of properties @barcode ||= false @buffer ||= '' @@ -4344,11 +4336,7 @@ # @return string converted # def unhtmlentities(string) - if @@decoder.nil? CGI.unescapeHTML(string) - else - @@decoder.decode(string) - end end end # END OF CLASS Index: lib/plugins/rfpdf/README =================================================================== --- lib/plugins/rfpdf/README (revision 11398) +++ lib/plugins/rfpdf/README (working copy) @@ -10,10 +10,6 @@ == == -If you are using HTML, it is recommended you install: - -gem install -r htmlentities - TCPDF Documentation located at: http://phpdocs.moodle.org/com-tecnick-tcpdf/TCPDF.html @@ -42,4 +38,4 @@ pdf = TCPDF.new -ENJOY! \ No newline at end of file +ENJOY!