Log in

View Full Version : bbcode with & (ampersand) ?


CCV_Pinto
10-25-2009, 06:03 PM
hi,

do you know how do I create a bbcode in which the substitution has an ampersand (the symbol: &) ?

because now my &'s are turning into: & which is the "html form" of the ampersand

this would happen if we pass a "htmlspecialchars" php function to the ampersand.. but thats not the problem because others symbols like < and > are working well

so I want a substitution like this:

<a href="blabla.com/test.php?param={param}&otherp=123"

but [mybb]test[mybb] turns to: <a href="blabla.com/test.php?param=mybb&amp;otherp=123"

and I think that cause the script I am calling to not work

I appreciate any advice

thanks in advance

RenatoMN
10-27-2009, 08:37 PM
Some things to verify:

1- be sure to include http:// in the href param

2- at least here, you didn't close the <a> tag (nor included the text to be shown).

it should be like: <a href="http://blabla.com/test.php?param={param}&otherp=123">{param}(or other text)</a>

3- if still don't work, try to use &amp; or %26 instead the & itself

CCV_Pinto
10-27-2009, 10:18 PM
valeu renato pela resposta :D

mas nenhuma funcionou :(

ser? q eh algum plugin que est? fazendo isso?

--------

the suggestions didnt work

maybe is a plugin that is causing this behavior?

ps: i know the example is not well written, i can post my exact bbcode:



<object width="480" height="392"><param value="http://video.globo.com/Portal/videos/cda/player/player.swf" name="movie" /><param value="high" name="quality" /><param value="midiaId={param}&autoStart=false&width=480&height=392" name="FlashVars" /><embed width="480" height="392" flashvars="midiaId={param}&autoStart=false&width=480&height=392" type="application/x-shockwave-flash" quality="high" src="http://video.globo.com/Portal/videos/cda/player/player.swf"></embed></object>