https://bitbucket.org/mvdkleijn/bbcode