README.md in truncato-0.7.0 vs README.md in truncato-0.7.1
- old
+ new
@@ -20,9 +20,10 @@
The configuration options are:
* `max_length`: The size, in characters, to truncate (`30` by default)
* `tail`: The string to append when the truncation occurs ('...' by default)
* `count_tags`: Boolean value indicating whether tags size should be considered when truncating (`true` by default)
+* `filtered_attributes`: Array of attribute names that will be removed from the output. This allows you to make the truncated string shorter by excluding the content of attributes you can discard in some given context, e.g HTML `style` attribute.
## Performance
Truncato was designed with performance in mind. Its main motivation was that existing libs couldn't truncate a multiple-MB document into a few-KB one in a reasonable time. It uses the [Nokogiri](http://nokogiri.org/) SAX parser.