Fix XSS Vulnerability

$row_id is being inserted into multiple places in the response HTML without being sanitized.