Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

update readme. backfill config sample

  • Loading branch information...
commit d41513f3d3e1f66fb942e0d81715e8b1c8f18c18 1 parent 4b55e81
@UnderpantsGnome authored
Showing with 26 additions and 5 deletions.
  1. +2 −5 README.txt
  2. +24 −0 examples/config.yml
View
7 README.txt
@@ -1,16 +1,13 @@
= hpricot_scrub
-http://trac.underpantsgnome.com/hpricot_scrub
+http://github.com/UnderpantsGnome/hpricot_scrub/tree/master
== DESCRIPTION:
HpricotScrub is a wrapper around Hpricot that allows you to easily scrub HTML
of tags and attributes you don't want in the final output.
-See examples/config.yml for a sample config file or
-
-== FEATURES/PROBLEMS:
-
+See examples/config.yml or examples/old_config.yml for a sample configs
== SYNOPSIS:
View
24 examples/config.yml
@@ -0,0 +1,24 @@
+---
+:elem_rules:
+ script: false
+ html: true
+ body:
+ lang:
+ - en
+ - es
+ - fr
+
+ strong: true
+ p: true
+ br: true
+ marquee: :strip
+ div:
+ - id
+ - class
+ - style
+ style: false
+ span: :strip
+ hr: true
+:default_elem_rule: :strip
+:default_comment_rule: false
+:default_attribute_rule: false
Please sign in to comment.
Something went wrong with that request. Please try again.