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;
In reply to Converting custom mark-up to HTML by bkiahg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |