<?php $a = '<h2 >1234567890</h2>'; echo htmlentities($a,ENT_NOQUOTES,'utf-8'); ?>
{literal} hello {$name} {/literal}