Does anyone know of a CF function or UDF that will strip out the cruft from Word-generated HTML?
Printable View
Does anyone know of a CF function or UDF that will strip out the cruft from Word-generated HTML?
Anyone? Over 100 views, someone must have the answer to this question. :)
Try http://www.cleanuphtml.com an online tool to clean word generated html
CF is stands by cold Fusion and UDF is User defined functions that’s allow developers to keep frequently used pieces of code together in reusable units. For example, you may often find yourself checking the size of a particular file or counting the number of records in a database table. You might find that you need to find out if a string is upper or lowercase, or convert a string to an array of single characters. User defined functions allow developers to keep frequently used pieces of code together in reusable units. For example, you may often find yourself checking the size of a particular file or counting the number of records in a database table. You might find that you need to find out if a string is upper or lowercase, or convert a string to an array of single characters.
Top Ten ColdFusion UDF Tips:
1. Choose your function names wisely
2. A little documentation goes a long way
3. Always Var your variables
4. Hey! CFScript caused my switch/case statements to break
5. Make the most of optional parameters
6. Be careful with recursion
7. By value vs. by reference
8. Keep your UDFs organized
9. A word about UDFs and custom tags
10. Don't reinvent the wheel