User Tools

Site Tools


syntax:functions:sanitize

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
syntax:functions:sanitize [2021/08/02 04:17] craigtsyntax:functions:sanitize [2021/08/14 22:29] (current) – [Examples] craigt
Line 23: Line 23:
  
 First, check the length of a string, including a tab character: First, check the length of a string, including a tab character:
-  len('Steven' & char(9)) = 7  //Length of 'Steven' (6) plus the tab+  len('Steven' & char(9)) //Returns 7  (Length of 'Steven' (6) plus the tab)
  
 The sanitized result is the same length, but the tab character has been converted to a trailing space: The sanitized result is the same length, but the tab character has been converted to a trailing space:
-  len(sanitize('Steven' & char(9))) +  len(sanitize('Steven' & char(9))) //Returns 
-  sanitize('Steven' & char(9)) 'Steven '+  sanitize('Steven' & char(9)) //Returns 'Steven '
syntax/functions/sanitize.txt · Last modified: 2021/08/14 22:29 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki