if there's no possibility of just 1 bracket appearing, then try:
=IF(A2="","",IF(ISNUMBER(FIND("<",A2)),A2,"<"&A2&">"))

if there is, then maybe:
=SUBSTITUTE(SUBSTITUTE(IF(A2="","","<"&A2&">"),"<<","<"),">>",">")