summaryrefslogtreecommitdiff
path: root/htmlentities
diff options
context:
space:
mode:
Diffstat (limited to 'htmlentities')
-rwxr-xr-xhtmlentities9
1 files changed, 4 insertions, 5 deletions
diff --git a/htmlentities b/htmlentities
index f3c2d34..c0ccc0a 100755
--- a/htmlentities
+++ b/htmlentities
@@ -1,9 +1,9 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
-require 'htmlentities'
+require "htmlentities"
-STDIN.set_encoding 'utf-8'
-STDOUT.set_encoding 'utf-8'
+STDIN.set_encoding "utf-8"
+STDOUT.set_encoding "utf-8"
coder = HTMLEntities.new
@@ -11,4 +11,3 @@ coder = HTMLEntities.new
while line = STDIN.gets
puts coder.decode(line.strip)
end
-