Problem with script inside bbcode

Get help developing custom BBCodes or request one.
MB_MathemaTeX
Registered User
Posts: 53
Joined: Wed Feb 15, 2006 10:52 am

Problem with script inside bbcode

Post by MB_MathemaTeX »

Hello, the following code seems to pose a problem, while removing the script tags everything seems to work. However, is it possible to make bbcode insert the text into script tags ?

Code: Select all

$configurator->BBCodes->addCustom(
        '[sage]{TEXT}[/sage]',
        '<div class="sage"><script type="text/x-sage">{TEXT}</script></div>');
Tanks for any help.
MB :: MathemaTeX ::
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53486
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}

Re: Problem with script inside bbcode

Post by Brf »

You want your users to be able to insert script into your webpage? That is a huge security risk.
MB_MathemaTeX
Registered User
Posts: 53
Joined: Wed Feb 15, 2006 10:52 am

Re: Problem with script inside bbcode

Post by MB_MathemaTeX »

I'm trying to embed this in bbcode. Looks like it works fine without the script tags, but I haven't tested very deeply either ...
MB :: MathemaTeX ::

Return to “Custom BBCode Development and Requests”