I have a string where special characters like ' or " or & (...) can appear. How can I convert in the string
string = " Hello "XYZ" this 'is' a test & so on "
automatically every special characters with theire html entities, so that I get this:
string = " Hello "XYZ" this 'is' a test & so on "
Thanks!