urlClean Icon

urlClean

Clean badly formed URLs or turn resource IDs into URLs.

By Dash Media (dashmedia)


urlClean is used as an output modifier on urls to force them to validate, also useable on document ID's to create links to them.

accepts option value equal to the makeURL scheme parameter when used on document ID's instead of full urls

eg:

url: youtube.com/test?q=this and that -> //youtube.com/test?this%20and%20that

url: /test relative?var=with, params.&that -> /test%20relative?var=with%2C%20params%2E&that

url: 2 -> /alias-to-your-page

[[+id:urlClean=`full`]] -> http://your-site.com/alias-to-document

AUTHOR: Jason Carney, DashMedia.com.au

Dash Media

Support


New in urlClean 1.0.3

urlClean 1.0.3-pl

---------------------------------

- use system default URL Generation Scheme when a Document ID is provided

- move to repoman build system

urlClean 1.0.2-pl

---------------------------------

- fix for newer versions of PHP (was causing errors when links started with '//')

urlClean 1.0.1-pl

---------------------------------

-output modifier bug fix

==urlClean 1.0.0-pl==

-inital release

More

Information

Released
April 21, 2014
Supported Versions
2.2 – Current
Downloads
817
License
GPLv2

More from Dash Media

googleMap

Output modifier turns an address into a Google Maps static map.

View
recursiveGrab

Snippet returns the value of a TV, recursively returning values from…

View
srcset

Creates @1x and @2x images using srcset html attribute.

View
GetIdList

Snippet returns a list of resource ids. A fork of GetIds.

View