def sanitize_html_id(html_id):
 sanitized_html_id = re.sub('[:-]', '_', html_id)
 return sanitized_html_id

def sanitize_html_id ( html_id ) : sanitized_html_id = re . sub ( '[:-]' , '_' , html_id ) return sanitized_html_id
template uses element_id in js function names .