From 7e2c62eedccabca6f5a6403eb96f1ed1bc9abd18 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Sat, 30 Jun 2012 12:08:53 -0500 Subject: [PATCH] adding 'strong' to 'permitted_tags', and 'a.target' to allowed_attributes, thanks Vladyslav --- VERSION | 2 +- gluon/html.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 0cc21b5c..c7c6cff5 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.00.0 (2012-06-30 11:54:31) dev +Version 2.00.0 (2012-06-30 12:08:50) dev diff --git a/gluon/html.py b/gluon/html.py index 63205145..860d6301 100644 --- a/gluon/html.py +++ b/gluon/html.py @@ -505,9 +505,10 @@ class XML(XmlComponent): 'img/', 'h1','h2','h3','h4','h5','h6', 'table','tr','td','div', + 'strong', ], allowed_attributes = { - 'a': ['href', 'title'], + 'a': ['href', 'title', 'target'], 'img': ['src', 'alt'], 'blockquote': ['type'], 'td': ['colspan'],