I guess I am looking for some templating engine that supports a "safe whitelist" of HTML tags, so I can't for example inject a tag.
I'm looking to let designers create themes out of this language and CSS, for various components, that I know are safe to inject into a page.