[size=20]I'm happy[/size]
gives
I\'m happy
[notag][size=20]I'm happy[/size][/notag] gives
[size=20]I\'m happy[/size]
both use function calls in the array. I removed the size check for now and it works:
// '#\[size=(\d+)(?::\w+)?\](.*?)\[/size(?::\w+)?\]#sie' => '_bbcode_size_tag(\\1, "\\2")',
'#\[size=(\d+)(?::\w+)?\](.*?)\[/size(?::\w+)?\]#si' => '<span style="font-size:\\1px">\\2</span>',
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | bbcode-filter.patch.txt | 1.09 KB | naudefj |
Comments
Comment #1
naudefj commentedProblem fixed - http://cvs.drupal.org/viewcvs/drupal/contributions/modules/bbcode/bbcode...
Comment #2
geofs commentedgood!
thanks :-)
Comment #3
geofs commentedwell,
now it's the double quotes (") that are escaped with a \
:-(
Comment #4
naudefj commentedAttached is a patch that will strip the slashes out again. It is not perfect (as it will strip user added slashes as well). Nevertheless, this seems to be the best possible solution to the problem.
Please test it and let us know if makes a difference.
Comment #5
naudefj commentedPatch committed.
Comment #6
(not verified) commented