Lines Matching refs:value
26 return wrapped # type: ignore[return-value]
161 value = str(self)
168 start = value.find("<!--")
174 end = value.find("-->", start)
179 value = f"{value[:start]}{value[end + 3:]}"
183 start = value.find("<")
188 end = value.find(">", start)
193 value = f"{value[:start]}{value[end + 1:]}"
196 value = " ".join(value.split())
197 return self.__class__(value).unescape()
209 return rv # type: ignore[return-value]
267 def format_field(self, value: t.Any, format_spec: str) -> str:
268 if hasattr(value, "__html_format__"):
269 rv = value.__html_format__(format_spec)
270 elif hasattr(value, "__html__"):
273 f"Format specifier {format_spec} given, but {type(value)} does not"
277 rv = value.__html__()
281 rv = string.Formatter.format_field(self, value, str(format_spec))
292 for key, value in iterable:
293 if isinstance(value, str) or hasattr(value, "__html__"):
294 obj[key] = escape(value)