Plugin Information
Valid URL 1.0
- Author:
- Justin Hurlburt
- Published:
- Aug 21, 2008
- Last Updated:
- Dec 01, 2008
- License:
- First Party License
- Categories:
- Plugins Output Text Text Formatting
Generates a URL valid for use in XHTML as an href or src attribute
Example Usage
Makes sure that a URL has a protocol, that ampersands are converted to entities, and all
other characters are properly URL encoded.
{exp:valid_url}
www.example.com/foo bar/bat?=bag&mice=men!
{/exp:valid_url}
Produces:
http://www.example.com/foo+bar/bat?=bag&mice=men%21

