Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [Optical] converting text to HTML

Quote Reply
Re: [Optical] converting text to HTML In reply to
Hi,

Quote:
1) You use \Q<html> ....\Q is for excaping meta-characters of which there are none in <html> so \Q is redundant.

Not really :P \Q will still work fine. It just stops ANY characters from being processed in any other form than its intended.

Quote:
2) The use of an empty block { } shows poor logic. The code would be far better written with an "unless" which would reduce the code length by two lines.

Agree on that one. I typed that global VERY early ;)

Quote:
3) The main bug....why are you escaping the middle forward slash in the substitution replacement?

Commonly known as a TYPO ;)

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!

Last edited by:

Andy: Mar 25, 2005, 3:00 AM
Subject Author Views Date
Thread converting text to HTML renken 9146 Mar 18, 2005, 6:59 AM
Thread Re: [renken] converting text to HTML
Andy 8955 Mar 18, 2005, 7:09 AM
Thread Re: [Andy] converting text to HTML
webmaster33 8912 Mar 18, 2005, 7:44 AM
Thread Re: [webmaster33] converting text to HTML
renken 8973 Mar 18, 2005, 8:00 AM
Post Re: [renken] converting text to HTML
webmaster33 8899 Mar 18, 2005, 8:27 AM
Thread Re: [renken] converting text to HTML
webmaster33 8901 Mar 18, 2005, 8:29 AM
Post Re: [webmaster33] converting text to HTML
renken 8830 Mar 21, 2005, 6:17 AM
Thread Re: [webmaster33] converting text to HTML
renken 8893 Mar 24, 2005, 11:56 AM
Thread Re: [renken] converting text to HTML
Andy 8871 Mar 25, 2005, 12:38 AM
Thread Re: [Andy] converting text to HTML
Optical 8847 Mar 25, 2005, 2:53 AM
Thread Re: [Optical] converting text to HTML
Andy 8840 Mar 25, 2005, 2:59 AM
Post Re: [Andy] converting text to HTML
Optical 8800 Mar 25, 2005, 3:29 AM
Thread Re: [Optical] converting text to HTML
webmaster33 8832 Mar 25, 2005, 4:49 AM
Thread Re: [webmaster33] converting text to HTML
Optical 8839 Mar 25, 2005, 5:16 AM
Post Re: [Optical] converting text to HTML
webmaster33 8824 Mar 25, 2005, 5:35 AM
Post Re: [Optical] converting text to HTML
renken 8773 Mar 25, 2005, 6:27 AM
Thread Re: [renken] converting text to HTML
minesite 8904 Mar 18, 2005, 8:46 AM
Thread Re: [minesite] converting text to HTML
loxly 8931 Mar 18, 2005, 9:28 AM
Post Re: [loxly] converting text to HTML
minesite 8846 Mar 18, 2005, 5:21 PM