handle HTML exception text