You appear to be a bot. Output may be restricted
Description
Returns nice link textConverts a simple fragment URL into nice link text
Usage
$string = bw_link_text_from_url( $url );
Parameters
- $url
- ( string ) required –
Returns
string nice link textSource
File name: oik/shortcodes/oik-link.phpLines:
1 to 13 of 13
function bw_link_text_from_url( $url ) { bw_trace2(); $text = $url; if ( '#' === substr( $text, 0, 1 ) ) { $text = substr( $text, 1 ); $text = str_replace( "-", " ", $text ); $text = str_replace( "_", " ", $text ); } return $text; }View on GitHub View on Trac