Issue with string in c#
- by user1740381
I have a problem with string in c#. I have following string :
Here Fonts is the string array contains google fonts name :
string fontsLink = "<link rel='stylesheet' id='fontrequest' href='http://fonts.googleapis.com/css?family='" + Fonts + "type='text/css' media='all'>";
this string is rendering wrong in the browser :
<link rel="stylesheet" id="fontrequest" href="http://fonts.googleapis.com/css?family=" times+new+roman|offside|dangrek|days+onetype="text/css" media="all">
The problem is with the href attribute value. How can i solve this ?