MCPcopy Index your code
hub / github.com/FSoft-AI4Code/CodeWiki / _escape_html

Method _escape_html

codewiki/cli/html_generator.py:219–234  ·  view source on GitHub ↗

Escape HTML special characters. Args: text: Text to escape Returns: Escaped text

(self, text: str)

Source from the content-addressed store, hash-verified

217 return '\n '.join(html_parts)
218
219 def _escape_html(self, text: str) -> str:
220 """
221 Escape HTML special characters.
222
223 Args:
224 text: Text to escape
225
226 Returns:
227 Escaped text
228 """
229 return (text
230 .replace('&', '&')
231 .replace('<', '&lt;')
232 .replace('>', '&gt;')
233 .replace('"', '&quot;')
234 .replace("'", '&#39;'))
235
236
237

Callers 2

generateMethod · 0.95
_build_info_contentMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected