Create a response with a HTML file response. It receives a string with the HTML content and set the Content-Type header to text/html; charset=utf-8 always.
text/html; charset=utf-8
This is useful to dynamically create a HTML file from a Resource Route.
export async function loader({ request }: LoaderFunctionArgs) { return html("<h1>Hello World</h1>");} Copy
export async function loader({ request }: LoaderFunctionArgs) { return html("<h1>Hello World</h1>");}
Create a response with a HTML file response. It receives a string with the HTML content and set the Content-Type header to
text/html; charset=utf-8
always.This is useful to dynamically create a HTML file from a Resource Route.