Convert special characters to html entities

Hi,
I’m searching for a solution to convert special characters (, ," ,&,’) to html entities. This is to map a string with a value in the dropdown.
type
In the parameter aaname, value is shown as “10&apos” which is HTML entity. I need to compare a string with this aaname value. For that, I need to identify special characters and convert to HTML. How can I do it?

grafik
HttpUtility.HtmlEncode(“Hello ““World”” & RPA”)

ensure following:
grafik

1 Like

Hi,
Thanks for the reply. I got System.Web but I’m not getting anything while typing HttpUtility.HtmlEncode(“Hello ““World”” & RPA”)


Cn you explain the solution more ?

had done it within the immediate panel during a debug run. just try it also at your end

Understanding the 6 Debugging Panels of UiPath in the easiest way possible! - News / Tutorials - UiPath Community Forum

Maybe test with other type of text or try to use full system.Web.HttpUtility.HtmlEncode
You can also try to use it in a Log message instead of the Inmediate Debug panel.

image

1 Like