escape code in plugin template