BossBey File Manager
PHP:
7.3.31-1~deb10u1
OS:
Linux
User:
www-data
Root
/
home
/
www
/
inorg
/
coord_old
/
phpmyadmin
/
libraries
📤 Upload
📝 New File
📁 New Folder
Close
Editing: sanitizing.lib.php
<?php /* $Id: sanitizing.lib.php,v 2.2 2005/11/17 13:12:58 cybot_tm Exp $ */ // vim: expandtab sw=4 ts=4 sts=4: /** * Sanitizes $message, taking into account our special codes * for formatting * * @param string the message * * @return string the sanitized message * * @access public */ function PMA_sanitize($message) { $replace_pairs = array( '<' => '<', '>' => '>', '[i]' => '<em>', // deprecated by em '[/i]' => '</em>', // deprecated by em '[em]' => '<em>', '[/em]' => '</em>', '[b]' => '<strong>', // deprecated by strong '[/b]' => '</strong>', // deprecated by strong '[strong]' => '<strong>', '[/strong]' => '</strong>', '[tt]' => '<code>', // deprecated by CODE or KBD '[/tt]' => '</code>', // deprecated by CODE or KBD '[code]' => '<code>', '[/code]' => '</code>', '[kbd]' => '<kbd>', '[/kbd]' => '</kbd>', '[br]' => '<br />', '[/a]' => '</a>', ); return preg_replace('/\[a@([^"@]*)@([^]"]*)\]/', '<a href="\1" target="\2">', strtr($message, $replace_pairs)); } ?>
Save
Cancel