The last notes
All English-language materials have been translated fully automatically using the Google service
It is quite easy to remove extra characters from the site code
It is enough to put this code in the file init.php
/ * Remove extra characters * /
require ($ _ SERVER ['DOCUMENT_ROOT']. '/ local / libs / sanitize.php');
Listing of the file sanitize.php
/ * Remove extra characters * /
AddEventHandler ("main", "OnEndBufferContent", "OnEndBufferContent");
function OnEndBufferContent (& $ content) {
$ content = sanitize_output ($ content);
}
function sanitize_output ($ buffer) {
return preg_replace ('~> \ s * \ n \ s * <~', '> <', $ buffer);
}
Comments