[thelist] CF: Text Formatting Question

Seb seb at poked.org
Tue Jul 22 12:34:53 CDT 2003


On Tue, 22 Jul 2003 12:21:51 -0500, Dan Boen <info at theplate.net> wrote:

> Hello, I'm a lurker coming out with a question...
>
> So I've got a CF blogger going, where the user enters text in a form, it 
> goes to a database and shows up elsewhere.  I've got some great code for 
> keeping the line breaks in, which is:
>
> #Replace(Body, chr(13) & chr(10), "<br>","ALL")#
>
> And I am well versed enough to know what's going on there.  HOWEVER, some 
> bits of the text need to be in bold for emphasis.  In the text file they 
> gave me, this shows up as  a <bf> tag.  How would I incorporate that 
> formatting into this code?

#Replace(Body, "<bf>", "<em>","ALL")#
#Replace(Body, "</bf>", "</em>","ALL")#

is a quick 2-step method. CF regexp gurus can probably offer a more 
efficient method.

- seb

-- 
http://poked.org


More information about the thelist mailing list