escape html metacharacters in FramePrinter::toHtmlText