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

Dependencies (0)


Dev Dependencies (0)


Drop in your plugins folder or coldbox extensions location

 

$ box install Plain-Text-Convertor

No collaborators yet.
 
5.00 / 4
  • Apr 20 2011 02:57 PM
  • Jun 09 2016 01:20 AM
  • 3,613
  • 1,899
  • 10