public Method

BlueCloth.unescape_special_chars( str )

Swap escaped special characters in a copy of the given str and return it.

Source Code

# File bluecloth.rb, line 427
def unescape_special_chars( str )
        EscapeTable.each {|char, hash|
                @log.debug "Unescaping escaped %p with %p" % [ char, hash[:md5re] ]
                str.gsub!( hash[:md5re], char )
        }

        return str
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.