Like :func:`escape` but converts `None` into an empty markup string.
(s)
| 29 | |
| 30 | |
| 31 | def escape_silent(s): |
| 32 | """Like :func:`escape` but converts `None` into an empty |
| 33 | markup string. |
| 34 | """ |
| 35 | if s is None: |
| 36 | return Markup() |
| 37 | return escape(s) |
| 38 | |
| 39 | |
| 40 | def soft_unicode(s): |