Factory.load('html2text_plugin.js'); var line = readLine(); while ( line != null ) { print( html2text(line) ); line = readLine(); }