xenforo_template_compiler_tag

Hello,
I have the following PHP variable :
$string = '<xen:h1>Demo</xen:h1>' ;
I would like to compile it using XenForo's core PHP functions, so I get the following result : "<h1>Demo</h1>".
It's exactly like XenForo's templates would do, but without using templates !
Any ideas ?