[thelist] Two XHTML validity questions in a CF site

Ben Dyer ben_dyer at imaginuity.com
Thu Jul 12 10:04:42 CDT 2001


At 09:54 AM 7/12/2001, you wrote:
>Aaron Cole wrote:
>
>>I've been desperately attempting to get my personal CF site to validate 
>>under the XHTML 1.0 Transitional DOCTYPE.  Only two glitches remain.
>>
>>1) I use the ParagraphFormat CF function which adds a <P> to posts every 
>>time the user enters two hard returns.  Obviously, the lack of a closing 
>>tag isn't kosher.  Are there any alternatives?  Adding a <br /> instead 
>>would be great.
>
>Maybe you could use "replace('your_string', chr(10), '<br />' 'All')"? You 
>could also use "chr(13)". You just need to replace the new line or 
>carriage return delimiter (or both if you want to be picky) with the <br 
>/> tag. Then wrap the entire contents in <p></p> tags.

Here's a thought.  Perusing the ColdFusion Developer's Exchange returned 
CF_StyledParagraph.

http://devex.allaire.com/developer/gallery/info.cfm?ID=CA347134-2830-11D4-AA9700508B94F380&method=Full

It's slightly different from ParagraphFormat() I believe (I actually 
haven't used it), but maybe you could work around it.

Maybe run Paragraph Format on a block of text, then run this custom tag on 
a list (with <p> as the delimiter)?  My brain's kinda fried right now, but 
I'm sure there is a potential workaround for this.

--Ben


<!-----------------------
Ben Dyer
Senior Internet Developer
Imaginuity Interactive
http://www.imaginuity.com
//---------------------->






More information about the thelist mailing list