Skip to content

Instantly share code, notes, and snippets.

@minch
Created January 6, 2010 14:00
Show Gist options
  • Select an option

  • Save minch/270293 to your computer and use it in GitHub Desktop.

Select an option

Save minch/270293 to your computer and use it in GitHub Desktop.

Revisions

  1. minch created this gist Jan 6, 2010.
    7 changes: 7 additions & 0 deletions html_encoded_cr.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    >> require 'sanitize'
    => []
    >> s="<p>\r\n</p>"
    => "<p>\r\n</p>"
    >> Sanitize.clean(s)
    => "&#13;\n"
    >> exit