Unclassified NewsBoard Code Reference

UnbLimitUrl function

Limit a URL to a given length

function UnbLimitUrl ($url, $max);

Parameters:

url
(string) URL to limit in its length
max
(int) maximum length in visible characters

Remarks:

Add '...' to query/path/filename parts if they were truncated.
Expects HTML-encoded input, ready for use in the ABBC parser on already parsed tag contents.

Implementation file: unb_lib/common.lib.php, line 1584

© 2006 Yves Goergen. Unclassified NewsBoard Homepage. Reference based on UNB unb.devel.20060128, dated 2006-01-28.