My website allows users to post content with links. There is one page which displays these posts with each post wrapped in <a></a>
tags
To avoid nested links issue, the links posted by user in the content, will be converted to <span onclick="window.href.location=">link</span>
so that when the entire content is wrapped in <a></a>
tags, there is no nesting.
Some websites claim that search engines do follow these javascript links. So, how to mention rel="nofollow" in links like <span onclick="window.href.location=">link</span>