Justin Ralston

Justin Ralston

  • NA
  • 1
  • 5.5k

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

Dec 20 2010 3:19 AM
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)