Given your description of how your in-game formatting works, you could do what you're looking for - but it would take quite a bit of work. The problem is that the model used by your formatter is radically different from that used by HTML. Your formatter assumes a dynamic style that's updated by the "$" commands; HTML uses delimiters to enclose the text to be formatted.
The upshot is that you'd have to write some sort of an HTML generator that follows your formatter's rules. This could range from relatively simple to very complex; for example, the "wide/narrow spacing" modifier would be very difficult to reproduce in HTML (a bit easier using CSS, but that's yet another kettle of fish), since you can't guarantee that all your users would have the same fonts.
Your best bet may just be to strip off all the formatting for your result list; that shouldn't be too hard.
$boat_name =~ s/(?<!\$)\$[iswnmgtz]//g; $boat_name =~ s/\$\$/\$/g;
In reply to Re: Game Nicknames to HTML
by oko1
in thread Game Nicknames to HTML
by baltic.sailor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |