Pregunta de entrevista de Indeed

Reverse a string keeping html text like ">" unchanged.