#include main(args) { local strs = [ 'This is a test of the specialsToHtml() conversion process.', 'These first strings have no special characters, but we\'ll get ' + 'to that presently.', 'We have some \ \ quoted spaces \ \ in this one.', 'Mixing \ \ quoted and \ \ \ unquoted spaces.', 'This one has some quote markups end quote.', 'Let\'s try quote ', 'markups', 'end quote across elements!', 'Some newline conversions: newline\nblank\bthree newlines\n\n\n' + 'three blanks\b\b\bnewline-blank-newline-blank\n\b\n\b', 'A tag across lines: hyperlinked text here', 'Caps flag: \^in quotes, nocaps: \v-lines\'>ALL CAPS', 'BR with HEIGHT attributes... first, height=0
\n' + 'Now height=1
' + 'And height=2
' + 'And now a height=0 at the start of a line\n
' + 'And height=2 at start of line\n
', 'Tabs:\none\ttwo\tthree\tfour\tfive\tsix\n' + '\ta\tb\tc\td\n' + 'hello\tgoodbye\tthat should be all' ]; local st = new TadsObject(); foreach (local str in strs) { "Src:\ \ <>
Disp: <>
s2h:\ \ <>

"; } } quoteAll(str) { return str.htmlify().findReplace( ['\n', '\b', '\t', ' ', '\ ', '\v', '\^'], ['\\n', '\\b', '\\t', '\ ', '\\\ ', '\\v', '\\^']); }