summaryrefslogtreecommitdiffstats
path: root/kjsembed/docs/examples/html2text/text2html.js
diff options
context:
space:
mode:
Diffstat (limited to 'kjsembed/docs/examples/html2text/text2html.js')
-rwxr-xr-xkjsembed/docs/examples/html2text/text2html.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/kjsembed/docs/examples/html2text/text2html.js b/kjsembed/docs/examples/html2text/text2html.js
new file mode 100755
index 00000000..7e4311ca
--- /dev/null
+++ b/kjsembed/docs/examples/html2text/text2html.js
@@ -0,0 +1,9 @@
+#!/usr/bin/env kjscmd
+
+Factory.load('html2text_plugin.js');
+
+var line = readLine();
+while ( line != null ) {
+ print( text2html(line) );
+ line = readLine();
+}