summaryrefslogtreecommitdiff
path: root/htmlentities
blob: ecbee3f17bbd076b42237c9d70d1d96ab8caff31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/ruby

require 'htmlentities'


STDIN.set_encoding 'utf-8'
STDOUT.set_encoding 'utf-8'

coder = HTMLEntities.new

while line = STDIN.gets
  puts coder.decode(line.strip)
end