output HTML content directly and get metadata through re