I want to create a new environment that takes one of its inputs as a link which might contain a special character and I want it to be escaped without each person manually escaping each character. I couldn't use verbatim
environment inside my parameters and neither google nor ChatGPT understood/helped with it.
Here is my environment in my cls:
\newenvironment{rProjects}[4]{ % 4 input arguments - project title, brief description, project link name, project link
{\bf #1} {#2} % Bold project name then description
\ifthenelse{\equal{#3}{}}{}{
\hfill \href{#3}{#4}
}\smallskip
}{}
and here is how I use it in my .tex
\begin{rProjects}{Project name}{description}{link with special characters}{link name}
\end{rProjects}