FORGEBOX Enterprise 🚀 - Take your ColdFusion (CFML) Development to Modern Times! Learn More...

Plain Text Convertor

v1.0 Public
Description:
This plugin takes html or rtf text and converts it to plain text
Example:
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. 

http://evdlinden.behindthe.net/index.cfm/2011/1/12/Convert-RTF-to-Plain-TEXTJava-Swing-rescue
Drop in your plugins folder or coldbox extensions location

Here are all the versions for this package. Please note that you can leverage CommandBox package versioning to install any package you like. Please refer to our managing package version guide for more information.

Version Created Last Update Published By Stable Actions
Current
1.0 Apr 20 2011 02:57 PM Jun 09 2016 01:20 AM

 

No collaborators yet.
 
5.00 / 4
  • Apr 20 2011 02:57 PM
  • Jun 09 2016 01:20 AM
  • 3189
  • 1432
  • 4