none
How can i put the text to make it string ? RRS feed

  • Question

  • I have this line:


    string startTag = <span class="message-profile-name" ><a  href='/profile/;


    But this part:

    <span class="message-profile-name" ><a  href='/profile/


    Make errors. I need to make from that a string .

    For example :

    string str = "<span class=\"message-text\">";

    So i added \ and some "

    and it was original like this:

    <span class="message-text\


    I added \ and " and its now as string.

    But the one in the top here i couldnt make it string. How can i do it ?


    danieli

    Friday, August 10, 2012 11:16 PM

Answers

  • Does this work for you?

    string startTag = "<span class=\"message-profile-name\"><a  href='/profile/";

    Or this?

    string startTag = "<span class=\"message-profile-name\"><a  href=\"/profile/";
    • Edited by csdevrich Saturday, August 11, 2012 4:05 AM
    • Marked as answer by chocolade Saturday, August 11, 2012 4:19 AM
    Saturday, August 11, 2012 4:04 AM

All replies

  • Does this work for you?

    string startTag = "<span class=\"message-profile-name\"><a  href='/profile/";

    Or this?

    string startTag = "<span class=\"message-profile-name\"><a  href=\"/profile/";
    • Edited by csdevrich Saturday, August 11, 2012 4:05 AM
    • Marked as answer by chocolade Saturday, August 11, 2012 4:19 AM
    Saturday, August 11, 2012 4:04 AM
  • blakpilar the first one thanks.

    danieli

    Saturday, August 11, 2012 4:19 AM