Your problem is quotes.
"<b>Blah blah Village</b><a href="http://www.cnn.com">Test</a>"
This is a string
"<b>Blah blah Village</b><a href="
And then some text, and then the string
">Test</a>"
To fix the issue, you would use different quotes for inner versus outer.
"<b>Blah blah Village</b><a href='http://www.cnn.com'>Test</a>"
Using your debug extensions would help you track this issue down faster.