jQuery.String.sub  function     

Returns a string with {param} replaced values from data.

$.String.sub("foo {bar}",{bar: "far"})
//-> "foo far"
$.String.sub(s, data, remove) -> undefined
{String}

The string to replace

{Object}

The data to be used to look for properties. If it's an array, multiple objects can be used.

{optional:Boolean}

if a match is found, remove the property from the object

{undefined}
© Jupiter IT - JavaScriptMVC Training and Support