summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/gallery/helpers/p.php11
1 files changed, 1 insertions, 10 deletions
diff --git a/modules/gallery/helpers/p.php b/modules/gallery/helpers/p.php
index 69032840..c3074c23 100644
--- a/modules/gallery/helpers/p.php
+++ b/modules/gallery/helpers/p.php
@@ -18,16 +18,7 @@
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/
class p_Core {
- static function attr($dirty_html) {
- // return $dirty_html;
- return htmlentities($dirty_html, ENT_QUOTES);
- // return str_replace('"', '"', $dirty_html);
- // return str_replace('"', '"', Purify::instance()->purify($dirty_html));
- }
-
function clean($dirty_html) {
- // return $dirty_html;
- return htmlentities($dirty_html, ENT_QUOTES);
- // return Purify::instance()->purify($dirty_html);
+ return html::specialchars($dirty_html);
}
}