summaryrefslogtreecommitdiffstats
path: root/kjsembed/docs/examples/html2text/text2html.js
blob: 7e4311cad0ff288acca73024fec8938537d2afe9 (plain)
1
2
3
4
5
6
7
8
9
#!/usr/bin/env kjscmd

Factory.load('html2text_plugin.js');

var line = readLine();
while ( line != null ) {
      print( text2html(line) );
      line = readLine();
}