From 3a800d30389c5c950de683cdbd5ef9673b3670cf Mon Sep 17 00:00:00 2001 From: Helmut Merz Date: Mon, 29 Oct 2012 11:56:09 +0100 Subject: [PATCH 1/2] allow image tags in sanitized HTML --- util/html.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/util/html.py b/util/html.py index 035da0e..e3950b1 100644 --- a/util/html.py +++ b/util/html.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2010 Helmut Merz helmutm@cy55.de +# Copyright (c) 2012 Helmut Merz helmutm@cy55.de # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -18,18 +18,16 @@ """ Strip HTML tags and other HTML-related utilities. - -$Id$ """ from cybertools.text.lib.BeautifulSoup import BeautifulSoup, Comment from cybertools.text.lib.BeautifulSoup import Declaration, NavigableString -validTags = ('a b br div em font h1 h2 h3 i li ol p pre span strong ' +validTags = ('a b br div em font h1 h2 h3 i img li ol p pre span strong ' 'table td tr u ul').split() -validAttrs = ('align border cellpadding cellspacing class colspan ' - 'href rowspan style title width').split() +validAttrs = ('align alt border cellpadding cellspacing class colspan ' + 'href rowspan src style target title width').split() validStyles = 'font-style font-weight'.split() validStyleParts = 'border padding'.split() From 0da2d1854c0b641bd0e9078c38b239f0dd882d2e Mon Sep 17 00:00:00 2001 From: Helmut Merz Date: Tue, 30 Oct 2012 15:13:04 +0100 Subject: [PATCH 2/2] add arrow icons --- browser/icons/arrow_left.png | Bin 0 -> 345 bytes browser/icons/arrow_right.png | Bin 0 -> 349 bytes browser/icons/arrow_up.png | Bin 0 -> 372 bytes 3 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 browser/icons/arrow_left.png create mode 100644 browser/icons/arrow_right.png create mode 100644 browser/icons/arrow_up.png diff --git a/browser/icons/arrow_left.png b/browser/icons/arrow_left.png new file mode 100644 index 0000000000000000000000000000000000000000..5dc696781e6135d37b5bf2e98e46fd94f020c48d GIT binary patch literal 345 zcmV-f0jBq$gGR5;6H z{Qv(y10{fofkH6I3@AO3$p*x`Nil#0jeqs;pT9Ds7{CaN1)$9r#n~kE{`~pF@bLXZ zhF?E_GyM7i!oL`P0x_8Wj$ni2F7#hzWPxfvDaIo>#A+qW*AYQLZl(!&BX$x7Ik;qO170ssEM z@$bKXf%rGW?|(r27bf-TSv zD}TdX0CM*JhkLO)8|Y^+n~Q^sK~hqR;q|N647YFGy>NTZJsWr!5CaSfwJm@a><8NX v2&h?|6w#wHUuW*nL5>vZR zlg{G&%mT~|kL3ei%GW0*UOHUMs5XI$4uxe-L?I@SAefq*207}Iqtjm#e5*fP53AiC z)C|RQfwzxx<#_WfANRGZx{+tFDl8~Q?;~Ve=lM^*8UTTnVL?HTDz8uta0D@d28E9S z_)i8aLz^UE6PPKymi;2GJ`34{eIia-CtfAt0H61rk0 SPTNud0000