e107inc/e107

View on GitHub
e107_core/bbcodes/sanitised.bb

Summary

Maintainability
Test Coverage
/* $Id: sanitised.bb 11660 2010-08-16 16:41:35Z secretr $ */
// decode (just in case) and re-code sanitised string if debug and ADMIN
if(defsettrue('ADMIN') && defsettrue('E107_DEBUG_LEVEL'))
{
    return '<span class="sanitised"> SANITISED: '.htmlentities(html_entity_decode(rawurldecode($code_text), ENT_QUOTES, CHARSET), ENT_QUOTES, CHARSET).'  SANITISED END</span>';
}
return '<span class="sanitised">##'.LAN_SANITISED.'##</span>';