#!/bin/bash
#
# Usage: html-to-text input encoding
#
# This is just a layer of indirection so the html-to-text utility can
# be changed in a central location.

in="$1"
encoding=$2

exec elinks -dump -dump-charset $encoding -no-references -no-numbering -no-home "$in"
