BoxLang 🚀 A New JVM Dynamic Language Learn More...

Plain Text Convertor

v1.0 Plugins
This plugin takes html or rtf text and converts it to plain text
This call would return the text of "Test Convertor", stripping out all the HTML.
#getMyPlugin("plaintextconvertor").convert("<p><a href='text.htm'>Test Convertor</a></p>")#
Arguments for the convert function:
text: REQUIRED The text to convert
format: either html or rtf, defaults to html.  This is what format your incoming text argument is in.

This plugin uses the Java Swing library.  Thanks to Ernst van der Linden for the inspiration.
Drop in your plugins folder or coldbox extensions location

$ box install Plain-Text-Convertor

No collaborators yet.
5.00 / 4
  • {{ getFullDate("2011-04-20T14:57:36Z") }}
  • {{ getFullDate("2016-06-09T01:20:59Z") }}
  • 6,243
  • 4,274