Added allowed empty elements function

What about strong, strikethrough, span, etc? Bit worried this is overly specialised.