Fluorescent detection of hypochlorous acid from turn-on to FRET-based ratiometry by a HOCl-mediated cyclization reaction.