Lines Matching defs:text
187 escape(PyObject *self, PyObject *text)
200 if (PyLong_CheckExact(text) ||
201 PyFloat_CheckExact(text) || PyBool_Check(text) ||
202 text == Py_None)
203 return PyObject_CallFunctionObjArgs(markup, text, NULL);
206 html = PyObject_GetAttr(text ,id_html);
221 if (!PyUnicode_Check(text)) {
222 PyObject *unicode = PyObject_Str(text);
229 s = escape_unicode((PyUnicodeObject*)text);
239 escape_silent(PyObject *self, PyObject *text)
241 if (text != Py_None)
242 return escape(self, text);
264 " text that might contain such characters in HTML.\n\n"
268 ":return: A :class:`Markup` string with the escaped text.\n"