Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Discussions (General)
 why replace "<br />" in ReplaceCodeTags?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

bjlt
Senior Member

1144 Posts

Posted - 05 December 2002 :  12:48:54  Show Profile
in Function ReplaceCodeTags(fString) there's a line

strCodeText = replace(strCodeText, "<br />", vbNewLine)


how can <br /> be in the codetext?
if html is on the we can not use
if html is off then <br /> is <br />
I think the only way there's a <br /> is using
in

I don't see the reason why one will use that to enter a <br /> and if one wants to show forum codes including
in it is converted, which shouldn't be.

I might be wrong like it always be.

David K
Junior Member

494 Posts

Posted - 05 December 2002 :  12:57:19  Show Profile  Send David K an AOL message  Send David K an ICQ Message  Send David K a Yahoo! Message
to display new lines in posts properly
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 05 December 2002 :  12:59:33  Show Profile  Visit HuwR's Homepage
this is so that you can cut and paste the code without loosing the line breaks

the <br> tags are added by FormatStr in order to display normal posts correctly, otherwise you post would all be on one line, they are then replaced for the code tags
Go to Top of Page

bjlt
Senior Member

1144 Posts

Posted - 05 December 2002 :  13:14:42  Show Profile
Now I see, <br /> is entered there by FormatStr first.

Thanks.
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 05 December 2002 :  13:16:07  Show Profile  Visit HuwR's Homepage
yes, otherwise your post would all appear on one line.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.2 seconds. Powered By: Snitz Forums 2000 Version 3.4.07