<?php
 
 ###########################################################################
 #   OsCommerce WAP 1.1                                                    #
 #   This file is part of the wap tweak for OsCommerce (c) copyright 2004  #
 #   by Tom Nitzschner (tom@toms-home.com)                                 #
 #   http://www.toms-home.com                                              #
 #                                                                         #
 #   As always, make a backup before messing with anything. All code       #
 #   release by me is considered sample code only. It may be fully         #
 #   functual, but you use it at your own risk, if you break it,           #
 #   you get to fix it too. No waranty is given or implied.                #
 #                                                                         #
 #   All my work is released under the GNU GENERAL PUBLIC LICENSE.         #
 #   Please see the README for more information.                           #
 ###########################################################################


// The function below filters any text that a WAP device cannot handle.
function tep_clean_wap_text($text_string) {
	
	# Nokia 6610 (and possible most other nokia's don't like a "&" in a text string. Even an
	# "&amp;" causes it to throw up. :(
	$text_string = ereg_replace("&amp;", "and", $text_string);
	$text_string = ereg_replace("&", "and", $text_string);

	# Add any character strings you find above bere, if possible with a short description of 
	# why you had to filter it and the wap device it was causing a problem with.
return $text_string;
}

?>