public static string ToHtmlSafePlainText(this string value) { // TODO extend to cover all special chars, although this is enough for security return value?.Replace("<", "<wbr><").Replace(">", "><wbr>").Replace("=", "<wbr>="); }