\documentclass{article}

\usepackage{html}

\bodytext{bgcolor=white}

\begin{document}

\tableofcontents

\section{Section a}
Text section a

\subsection{Subsection a}
Text subsection a

\subsection{Subsection b}
Text subsection b


\section{Section b}
Text section b

\subsection{Subsection a}
Text subsection a

\subsection{Subsection b}
Text subsection b

\end{document}
