diff options
| author | Patrick Simianer <patrick@lilt.com> | 2026-02-26 10:05:59 +0000 |
|---|---|---|
| committer | Patrick Simianer <patrick@lilt.com> | 2026-02-26 10:05:59 +0000 |
| commit | b31ace79ea5f6b3f279c544cd3a443d6fbf2a24d (patch) | |
| tree | 31f2b599fa5f6996aeb134390d58deb63eefe04a /htmlentities | |
| parent | 8805e95ae94d798c6441f7e1b72c90e049563f17 (diff) | |
Diffstat (limited to 'htmlentities')
| -rwxr-xr-x | htmlentities | 9 |
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 - |
