Below is the simple job I have written in D365 for removing encoded values from a string. Usually we see this kind of encoded special characters in the API's.
class SW_HTMLDecode
/// <summary>
/// Runs the class with the specified arguments.
/// </summary>
/// <param name = "_args">The specified arguments.</param>
public static void main(Args _args)
{
str input = ' Test & notes';
str output = System.Web.HttpUtility::HtmlDecode(input);
;
info(output);
}
}
Result = Test & notes
@Rahul
class SW_HTMLDecode
/// <summary>
/// Runs the class with the specified arguments.
/// </summary>
/// <param name = "_args">The specified arguments.</param>
public static void main(Args _args)
{
str input = ' Test & notes';
str output = System.Web.HttpUtility::HtmlDecode(input);
;
info(output);
}
}
Result = Test & notes
@Rahul
No comments:
Post a Comment