fixes tracker issue #49

I'm still new to pull requests so I don't know why other commits are on there. Only one file has changed anyway.

there's probably a better way of fixing this but I couldn't think of one. This just tricks the parser into thinking that the invalid BBCode isn't there because there is vaild BBCode in the tag.