Not quite sure what you are trying to accomplish, but I'll give it a whack.

Are you saying that any CR that happens right after a tag should not
happen, then:

<!--- replace all tag/newlines with just tags --->
<cfset newString=rereplace(str,">[#chr(10)##chr(13)#]+",">","ALL")>
<!--- remove all tags --->
<cfset newString=rereplace(newString,"<[^>]*>","","ALL")>


On 1/30/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I'm having trouble displaying a large chunk of text properly. Basically, the
> text looks something like:
>
> This is a test <b style="color:red">with</b>
> some test that will wrap around the different
> lines. I <b style="color:red;text-decoration:none">
> want more text here</b>
>
> Essentially, I want to take out all of the HTML tags and redisplay the text.
> Problem is that just removing the HTML results in the following being
> displayed:
>
> this is a test with
> some text that will wrap around the different
> lines. I
> more text here.
>
>
> This doesn't look so hot. How can I get the "some text..." to appear on the
> previous line, and also the "more text here" to appear on the previous line.
> I'm trying to make this look like seamless text, but right now it looks like
> broken chunks with obvious data removed. Ideally, I'd like all the text on 1
> line, that I can then wrap later myself.
>
> My initial attemps of removing carriage returns first, stripping HTML, then
> re-adding CR's didn't work as the real CR's were lost. Any ideas?
>
> Cedric
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230794
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to