<?php

$a = '<h2 >1234567890</h2>';

echo htmlentities($a,ENT_NOQUOTES,'utf-8');

?>