Now that I wrapped up the JavaScript version of this function, I thought I would go ahead and create a ColdFusion version as well. The big difference between the two functions is that JavaScript will allow you to use a function pointer in the replace-string portion of the regular expression replace function. ColdFusion does not allow us to do that, but there is a pretty cool function that I used, ReplaceList(). This function will find a match in one list and replace it with the corresponding list index item in another string. Other than that it's pretty identical to the CJ Html Parser function.
Note: CJ Html Parser was formally known as Html2Ascii
Have something to say? Leave a comment!
You don't have to be registered to leave a comment. Unregistered user's comments will be approved before going live.
You are currently posting as an unregistered user.
This means that your comment will be reviewed prior to going live. If you are a registered user, please login. New user? No problem, register for an account, it's FREE! Benefits include, posting instantly, screen name protection, collaboration recognition, subscribe to article updates, and so much more!