Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Removing markup from post

Quote Reply
Removing markup from post
Hi,

I'm trying to include a forum post on another page of my site but I get all the markup code.

Is there a GT function which will convert this to html?

Thanks, Laura.
Quote Reply
Re: [afinlr] Removing markup from post In reply to
Yes, you can call the convert_markup() function in GForum::Convert. It depends on how you're calling it, of course, but this example should be able to get you started:

Code:
use GForum;
use GForum::Convert;
GForum::init("projects/gforum/cgi/admin");
my $str = "123[red]456[/red]789";
GForum::Convert::convert_markup(\$str);
print $str;

Code:
123<font color=red>456</font>789

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [Jagerman] Removing markup from post In reply to
Great - thanks a lot.