lib/tmlib: added isHTML() and isURL()