Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)
str(object='') -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

src/d/j/django-wiki-syntax-HEAD/wikisyntax/markdown.py   django-wiki-syntax(Download)
from django.contrib.markup.templatetags.markup import markdown
from django.utils.safestring import mark_safe
from .constants import LEFTBRACKET, RIGHTBRACKET
 
def wikisafe_markdown(value, lsafety=None, rsafety=None):
    lsafety = lsafety or 'LBRACK666' # Some unlikely nonsense
    rsafety = rsafety or 'RBRACK666' # Some unlikely nonsense
    value = value.replace(LEFTBRACKET, lsafety).replace(RIGHTBRACKET, rsafety)
    value = markdown(value)
    value = value.replace(lsafety, LEFTBRACKET).replace(rsafety, RIGHTBRACKET)