diff --git a/buypoints.php b/buypoints.php
index 6b4b275..e61cbdd 100644
--- a/buypoints.php
+++ b/buypoints.php
@@ -31,19 +31,19 @@ if ($paypal['enabled']) {
@@ -59,13 +59,13 @@ if ($paypal['enabled']) {
if ($config['pagseguro']['enabled'] == true) {
?>
Buy points using Pagseguro:
-
success) && $json->success;
}
+// html encoding function (encode any string to valid UTF-8 HTML)
+function hhb_tohtml(/*string*/ $str)/*:string*/ {
+ return htmlentities($str, ENT_QUOTES | ENT_HTML401 | ENT_SUBSTITUTE | ENT_DISALLOWED, 'UTF-8', true);
+}
?>
|