I have a javascript method that takes a single parameter. That parameter can be a path (in which case the function will use ajax to resolve the variable, a function (which will be called to resolve the variable, or valid markup (which will be used directly).

I'm looking for suggestions for distinguishing between a string that represents a path and a string that represents markup.

Note: I'm not too concerned if the markup is invalid