{name} is not replaced if they are in the attributes, how to handle?

barrie7c

New Member
The test code is:\[code\]val s = "#"val x = <a href="http://stackoverflow.com/questions/5030100/{s}">{s}</a>println(x)\[/code\]It prints:\[code\]<a href="http://stackoverflow.com/questions/5030100/{s}">#</a>\[/code\]Notice the \[code\]{s}\[/code\] is still there in the attribute, how to fix it?
 
Top