new H_strings()
generics.js, line 290
Methods
-
staticH_strings.complete_string(str, replace_array){string}
generics.js, line 311 -
Replaces $1, $2, ... in a string with values from an array.
uses essentialy in translation files to replace $x in sentences.Name Type Description strstring The string with placeholders. replace_arrayArray | string Values to insert. Returns:
Type Description string Completed string. -
staticH_strings.escape_html(text){string}
generics.js, line 332 -
Escapes HTML special characters in a string.
Converts <, >, ", and ' to HTML entities.Name Type Description textstring The text to escape. Returns:
Type Description string Escaped string.