263 |
* specify a new path to where your images |
* specify a new path to where your images |
264 |
* live. |
* live. |
265 |
*/ |
*/ |
266 |
var $_image_path = "/phphtmllib/images/widgets"; |
var $_image_path = "img/widgets"; |
267 |
|
|
268 |
|
|
269 |
/** |
/** |
1073 |
* @return string the cleaned/filtered data |
* @return string the cleaned/filtered data |
1074 |
*/ |
*/ |
1075 |
function _filter_column_string($data) { |
function _filter_column_string($data) { |
1076 |
return htmlspecialchars(trim($data)); |
// WAS: return htmlspecialchars(trim($data)); |
1077 |
|
|
1078 |
|
// NEW: require 'flib/Application/i18n/TextEncode.php' |
1079 |
|
// this will do a 'htmlentities' RECURSIVE on each item |
1080 |
|
$encoder = new Data_Encode($data); |
1081 |
|
$encoder->toHTML(); |
1082 |
|
return $data; |
1083 |
} |
} |
1084 |
|
|
1085 |
|
|
1634 |
return $url; |
return $url; |
1635 |
} |
} |
1636 |
|
|
|
/** |
|
|
* This does some magic filtering on the data |
|
|
* that we display in a column. This helps |
|
|
* to prevent nast data that may have html |
|
|
* tags in it. |
|
|
* |
|
|
* @param string - the column data u want to filter |
|
|
* @return string the cleaned/filtered data |
|
|
*/ |
|
|
function filter_column_string($data) { |
|
|
return htmlspecialchars(trim($data)); |
|
|
} |
|
|
|
|
|
|
|
1637 |
|
|
1638 |
/** |
/** |
1639 |
* This function is used to make sure that the string we are |
* This function is used to make sure that the string we are |