Escape string for use in HTML\hypertarget{md_sfcode_node_modules_escape_html_Readme_autotoc_md9209}{}\doxysection{Example}\label{md_sfcode_node_modules_escape_html_Readme_autotoc_md9209}

\begin{DoxyCode}{0}
\DoxyCodeLine{var escape = require('escape-\/html');}
\DoxyCodeLine{var html = escape('foo \& bar');}
\DoxyCodeLine{// -\/> foo \&amp; bar }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_escape_html_Readme_autotoc_md9210}{}\doxysection{Benchmark}\label{md_sfcode_node_modules_escape_html_Readme_autotoc_md9210}

\begin{DoxyCode}{0}
\DoxyCodeLine{\$ npm run-\/script bench}
\DoxyCodeLine{}
\DoxyCodeLine{> escape-\/html@1.0.3 bench nodejs-\/escape-\/html}
\DoxyCodeLine{> node benchmark/index.js}
\DoxyCodeLine{}
\DoxyCodeLine{}
\DoxyCodeLine{  http\_parser@1.0}
\DoxyCodeLine{  node@0.10.33}
\DoxyCodeLine{  v8@3.14.5.9}
\DoxyCodeLine{  ares@1.9.0-\/DEV}
\DoxyCodeLine{  uv@0.10.29}
\DoxyCodeLine{  zlib@1.2.3}
\DoxyCodeLine{  modules@11}
\DoxyCodeLine{  openssl@1.0.1j}
\DoxyCodeLine{}
\DoxyCodeLine{  1 test completed.}
\DoxyCodeLine{  2 tests completed.}
\DoxyCodeLine{  3 tests completed.}
\DoxyCodeLine{}
\DoxyCodeLine{  no special characters    x 19,435,271 ops/sec ±0.85\% (187 runs sampled)}
\DoxyCodeLine{  single special character x  6,132,421 ops/sec ±0.67\% (194 runs sampled)}
\DoxyCodeLine{  many special characters  x  3,175,826 ops/sec ±0.65\% (193 runs sampled) }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_escape_html_Readme_autotoc_md9211}{}\doxysection{License}\label{md_sfcode_node_modules_escape_html_Readme_autotoc_md9211}
MIT 