chickadee » sxml-transforms » string->goodHTML

string->goodHTML htmlprocedure

Given a string, check to make sure it does not contain characters such as '<' or '&' that require encoding. Return either the original string, or a list of string fragments with special characters replaced by appropriate character entities.