public Method

BlueCloth.transform_auto_links( str, rs )

Transform URLs in a copy of the specified str into links and return it.

Source Code

# File bluecloth.rb, line 615
def transform_auto_links( str, rs )
        @log.debug " Transforming auto-links"
        str.gsub( AutoAnchorURLRegexp, %{<a href="\\1">\\1</a>}).
                gsub( AutoAnchorEmailRegexp ) {|addr|
                encode_email_address( unescape_special_chars($1) )
        }
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.