Copyright (c) 2001-2019 BohwaZ All rights reserved. KD2FW is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Foobar is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with Foobar. If not, see . */ /* Garbage2xhtml lib Takes a html text and returns something semantic and maybe valid Copyleft (C) 2006-13 BohwaZ - http://bohwaz.net/ */ class Garbage_Exception extends \Exception { } class Garbage2xhtml { /** * Secure attributes contents? * Will check for url scheme and url content in href and src * It's advised to disable