def latex_to_html(s, alt='<STR_LIT:image>'):
base64_data = latex_to_png(s, encode=True)<EOL>if base64_data:<EOL><INDENT>return _data_uri_template_png  % (base64_data, alt)<EOL><DEDENT>
Render LaTeX to HTML with embedded PNG data using data URIs.

    Parameters
    ----------
    s : str
        The raw string containing valid inline LateX.
    alt : str
        The alt text to use for the HTML.