grep is your friend.
Can you elaborate on why I should avoid BBcode?
bbcode is not standardised, there can be a difference in how certain things are handled between sofware, for instance quotes and citations. Where as markdown, textile, xhml has some standard.Nowadays xhtml can be sanitised more efficiently. Persnally I like to use htmlLawed. But I disable styles, and only allow the following classes: CenterLeftJustifyRightBlockLeftBlockRightBlockCenterStrikeThroughUnderLinewith some modification to tinyMCE to format in classes rather then styles. However the default plugin is sufficient.