% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/chat.R
\name{.js_esc}
\alias{.js_esc}
\title{Escape a character string for safe embedding in a JS string literal}
\usage{
.js_esc(x)
}
\arguments{
\item{x}{Character vector.}
}
\value{
Character vector with escapes applied.
}
\description{
Replaces characters that break JS string literals: backslash, double-quote,
newline, carriage-return, and tab.
}
\keyword{internal}
