public
Description: rails helper that works just like truncate, but it respects, and produces well formed html
Clone URL: git://github.com/ianwhite/truncate_html.git
rescuing non-existence of htmlentities and hpricot, so rake gems can start
ianwhite (author)
Sat Jun 14 05:23:14 -0700 2008
commit  8e0a839b3f29ad8060fb1324254a63b308d5df17
tree    5f93c725559ec8834c626a5cfe2537acd58f9681
parent  114dd40d1d4304e7802eb264b0f83e2f2bf18bdb
...
1
2
3
 
 
4
5
6
...
1
 
 
2
3
4
5
6
0
@@ -1,6 +1,6 @@
0
 require "rexml/parsers/pullparser"
0
-require "htmlentities"
0
-require "hpricot"
0
+require "htmlentities" rescue nil
0
+require "hpricot" rescue nil
0
 
0
 module Ardes #:nodoc:
0
   module TruncateHtmlHelper

Comments

    No one has commented yet.