Thread:Project:Support desk/Extension help regarding evaluating wiki text

Say I have a simple extension that evaluates wiki text and output its on a page. I also want it to output simple HTML tags allowed by MW, such as div, span and table.

Test

Does MW have a built-in function to check for other tags, such as, and any other potential XSS tags? Or rather, a function to check for all HTML tags not permitted by MW during normal page creation.

No preg_matcherino pls.