I need to remove any type of formatting from a text to get an URL multi-formatting.
By keeping the following model, I have tried various solutions but without having the desired result.
Would anyone know how to find a solution?
\newcommand{\link}[1]{
%
% ?
%
\href{#1_WITHOUT_FORMATTING_AND_COMMANDS}{#1_WITH_FORMATTING}
}
\begin{document}
\link{http://www.site.com/page.php?key1=\textcolor{red}{value1}\&\textit{key2=value2}/\textbf{page2}/page3}
\end{document}
Thanks.
