I'm using hyperref for my dissertation's TOC and have subsection titles italicised using \emph{}. Is there a way I can retain the title formatting in the text, but make them appear unformatted in the table of contents?
For reference, I've tried what is suggested in the replies to this post, and the following options using tocloft before the \tableofcontents command:
a) \renewcommand{\cftsubsecfont}{\upshape}
b) \renewcommand{\cftsubsecfont}{\normalfont}
c) \renewcommand{\cftsubsecfont}{\textnormal{}}
d) \renewcommand{\cftsubsecfont}{\textup{}}
They work fine to add formatting, but none of these help with removing the italics from the text. Any help appreciated!

\emph{}". E.g., do provide a couple of examples of actual\subsectiondirectives. Please also tell us which document class you employ. – Mico Apr 12 '22 at 06:47titlesecto have subsection titles italicized, with\titleformat*{\subsection}{\itshape}in the preamble. – Bernard Apr 12 '22 at 08:23\chapter{X. Chapter Title}->\section{X.1. Section}->\subsection{X.1.1. Subsection}. – tex-mex-editor Apr 12 '22 at 11:05\subsection{\emph{Subsection}}. – tex-mex-editor Apr 12 '22 at 11:19