1
Answer

Creating a VB.net text string containing special characters # and /

Photo of Justin Ralston

Justin Ralston

14y
5.6k
1
Hi

I am trying to write a simple plugin for live writer to add links within a single blog entry
i have to add the following text string from vb.net

<a href="#withinposts">test</a>

but can not format the string correctly due to the # and / to assign it to a variable I have tried the following with no luck
any suggestions appreicated.

newContent = newContent.Format("<a href="#withinposts">{0}</a>", newContent)
               
newContent = "<a href=" & """ &  ""#"" " & "withinposts" & """ & " > " & newcontent & ""</a>"

Regards

Justin Ralston

Answers (1)