The third parameter can be a string or an array of strings that identify
properties within the object we don't want to encode.
There are other methods within JOutputFilter that we can use to encode data,
including making URIs XHTML standards compliant and replacing ampersands
with the HTML entity &.
Error Handling and Security
[ 320 ]
Regular Expressions
REs (Regular Expressions) are revered by those who know how to use them, and
considered a black art to those who don't. We can use Regular Expressions to
sanitize data, to check the format of data, and to modify data. At the heart of REs are
patterns; RE patterns are used to identify character patterns in data.
Patterns
Patterns are encapsulated with two identical characters, the pattern delimiters.
Common pattern delimiters are the forward slash /, the hash #, and the tilde ~. You
don't have to use the common pattern delimiters, but using them can make your
code more readable for other developers.
Between the pattern delimiters is where we define what it is we are looking for.
Pages:
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439