Replacing HTML Characters This function can be used to replace HTML characters in data fields, for example, to replace " " with a space character.