c# - HTMLDecode string array using LINQ -
How can I use e.g. Instead of I tried, Where Still, I'm unable to get the desired result. Edit: As shown above of my original string, After applying the following solutions, I am able to but the actual string You are not seeing any changes The reason for this is that Also why (as mentioned in Heinrich) you should use You will use it like this: string [] to
LINQ Can i
string instead of
string as
Institute & amp; Apos; s from
string [] is getting / P>
values. ForEach (item = & gt; WebUtility.HtmlDecode (item));
My
string [] ..
institution and I encode it as I am receiving
Institute & amp; Apos; S ----> First level encoding
Institute & amp; Apos; s ----> Second level encoding
Institute
Institute
WebUtility.HtmlDecode does not specify a value for the parameters you passed, instead, giving it the value of the HTML decoded Is there.
string encoded string = "& amp; amp;"; // This is nothing but WebUtility.HtmlDecode (encoded string); // It assigns a decoded value to a new string string decoded string = WebUtility.HtmlDecode (encoded string);
select in your Linux query.
value = value. Select (item => WebUtility.HtmlDecode (item));
Comments
Post a Comment