def METHOD_NAME(match):
    text = match.group(1)
    text = text.replace("\\'", "'")
    text = text.replace(" ", "&nbsp;")
    if text:
        return "<code>%s</code>" % text
    else:
        return "'"