Index: cms/converters.py |
=================================================================== |
--- a/cms/converters.py |
+++ b/cms/converters.py |
@@ -101,17 +101,17 @@ class AttributeParser(HTMLParser.HTMLPar |
def handle_entityref(self, name): |
self._append_text(self.unescape("&%s;" % name)) |
def handle_charref(self, name): |
self._append_text(self.unescape("&#%s;" % name)) |
class Converter: |
- whitelist = set(["a", "em", "strong"]) |
+ whitelist = set(["a", "em", "strong", "code"]) |
def __init__(self, params, key="pagedata"): |
self._params = params |
self._key = key |
self._attribute_parser = AttributeParser(self.whitelist) |
# Read in any parameters specified at the beginning of the file |
lines = params[key].splitlines(True) |