qb_safe — make input safe for QuickBooks by removing unfriendly characters
The filter makes data safe for Intuit QuickBooks, because QB will crash at the drop of a hat.
Example: Filter example
qb_safe
the input and limit it to 25 characters.
[filter op="qb_safe 25" interpolate=1][ol-param sku][/filter]
Interchange 5.9.0:
Source: code/Filter/qb_safe.filter
Lines: 20
# Copyright 2002-2007 Interchange Development Group and others # Copyright 1996-2002 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. See the LICENSE file for details. # # $Id: qb_safe.filter,v 1.8 2007-03-30 23:40:45 pajamian Exp $ CodeDef qb_safe Filter CodeDef qb_safe Description Safe for Quickbooks CodeDef qb_safe Visibility private CodeDef qb_safe Routine <<EOR sub { my $val = shift; $val =~ s/[\"\/\\]//g; return $val; } EOR