Home API Docs Linkr Client Side Javascript
Attention: open in a new window.PDFPrintEmail
Article Index
Javascript
Variables
Basic
Strings
Database
HTML
Miscellanous
All Pages

String methods

String-related methods

Base64.Encode(str)

Since 2.3.2 Base64-encodes a string
  • str (required): String to encode

Base64.Decode(str)

Since 2.3.2 Base64-decodes a string
  • str (required): String to decode

setL18N(key, value)

Since 2.3.1 Sets the key for localized text.
  • key (required): String identifier
  • value (required): Localized text

getL18N(key, args)

Since 2.3.1 Returns the localized text for a given key
  • key (required): String identifier
  • args (optional): Array of values to replace sprintf External link specifiers

urlencode(str)

Since 2.3.2 JavaScript's equivalent to PHP's rawurlencode.
  • str (required): String to encode

urldecode(str)

Since 2.3.2 JavaScript's equivalent to PHP's rawurldecode.
  • str (required): String to decode

UTF8.Encode(str)

Since 2.3.1 UTF8-encodes a string if it isn't already encoded.
  • str (required): String to encode

UTF8.Decode(str)

Since 2.3.1 UTF8-decodes a string
  • str (required): String to decode


Linkr 2.3.7 (20 May 2010) is finally out. This release tackles many bugs and will make the overall usage a little smoother.