Beispiel #1
0
def smartypants(text):
    """Applies smarty pants to curl quotes.
    
    >>> smartypants('The "Green" man')
    u'The “Green” man'
    """
    
    return _smartypants.smartyPants(text)
def smartypants(text):
    """Applies smarty pants to curl quotes.
    
    >>> smartypants('The "Green" man')
    u'The “Green” man'
    """
    text = force_unicode(text)

    output = _smartypants.smartyPants(text)
    return mark_safe(output)