2007-09-01, 07:06 PM
I have declared a myCode:
regexp
Which should give me a simple tag for hiding "spoilers". Works fine, but nested tags like
regexp
\[hide\](.*?)\[/hide\]
replace with<span style="text-decoration: underline;" onclick="this.style.textDecoration='none'; this.innerHTML='$1'">Click to show the hidden text</span>
Which should give me a simple tag for hiding "spoilers". Works fine, but nested tags like
[hide]Hidden once.
[hide]Hidden twice.[/hide]
Something after that.[/hide]
get parsed as<span style="text-decoration: underline;" onclick="this.style.textDecoration='none'; this.innerHTML='Hidden once.<br />
[hide]Hidden twice.'">Click to show the hidden text</span><br />
Something after that.[/hide]