MCPcopy
hub / github.com/django/django / _strip_once

Function _strip_once

django/utils/html.py:205–212  ·  view source on GitHub ↗

Internal tag stripping utility used by strip_tags.

(value)

Source from the content-addressed store, hash-verified

203
204
205def _strip_once(value):
206 """
207 Internal tag stripping utility used by strip_tags.
208 """
209 s = MLStripper()
210 s.feed(value)
211 s.close()
212 return s.get_data()
213
214
215@keep_lazy_text

Callers 1

strip_tagsFunction · 0.85

Calls 4

get_dataMethod · 0.95
MLStripperClass · 0.85
feedMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected