I have used
\documentclass{article}
\usepackage{soul}
\usepackage[normalem]{ulem}
\begin{document}
\hl{\mbox{\sout{This is my text which I want to highlight and strike through. The text does not go to the next line, instead it goes beyond the page.}}}
\end{document}
But the sentence is not broken down in output pages. It goes beyond the page. How to fix it?


MWEas in executable format, i.e., from\documentclassto\end{document}– MadyYuvi May 12 '23 at 03:40and ending with\end{document}, which can test at it is – Zarko May 12 '23 at 03:53soulpospackage also uses TikZ for positioning – user202729 May 12 '23 at 05:48