bkiahg has asked for the wisdom of the Perl Monks concerning the following question:
This is poor coding though because any spare ]'s are automatically turned into ">'s.# change color s/\[color=/<font color=\"/gi; s/\[\/color\]/<\/font>/gi; # change images s/\[image=/<img src=\"/gi; # change links s/\[link=/<a class=side_nav href=\"/gi; s/\[\/link\]/<\/a>/gi; # Clean up remaining ]'s s/\]/\">/g;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Converting custom mark-up to HTML
by Aragorn (Curate) on Apr 19, 2004 at 17:47 UTC | |
by bkiahg (Pilgrim) on Apr 19, 2004 at 17:52 UTC | |
by Aragorn (Curate) on Apr 19, 2004 at 18:32 UTC | |
|
Re: Converting custom mark-up to HTML
by Art_XIV (Hermit) on Apr 19, 2004 at 17:27 UTC | |
by bkiahg (Pilgrim) on Apr 19, 2004 at 17:48 UTC | |
|
Re: Converting custom mark-up to HTML
by Callum (Chaplain) on Apr 19, 2004 at 17:22 UTC |