It is a string so anything that can parse the string. You can write a regular expression or do some workaround like this:
smElem.RenderedHTML = smElem.RenderedHTML.Replace("<a ", "<h1><a ");
smElem.RenderedHTML = smElem.RenderedHTML.Replace("</a>", "</a></h1>");