Skip to content

Commit e79e165

Browse files
committed
Ãupdated lecture 10
1 parent c1f3a47 commit e79e165

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

slides/lecture 10/parts/security.tex

+8-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,14 @@ \section{Cross Cite Scripting}
9393
\item check the documentation
9494
\item react:
9595
\begin{itemize}
96-
\item escapes: \code{<p>\{htmlSnippet\}</p>}
96+
\item escapes all stings form JavaScript in JSX:
97+
\begin
98+
{CodeBox}{}
99+
function MyComponent() {
100+
const param = useParam();
101+
return <p>could not find user {param.user}</p>;
102+
}
103+
\end{CodeBox}
97104
\end{itemize}
98105
\end{itemize}
99106
\end{frame}

0 commit comments

Comments
 (0)