Switch branches/tags
x-tern-base v1.0 pre-dmr deploy-2018-02-06 deploy-2018-01-31 deploy-2018-01-24 deploy-2018-01-23 deploy-2018-01-18 deploy-2018-01-10 deploy-2018-01-03 deploy-2017-12-07 deploy-2017-11-22 deploy-2017-11-13 deploy-2017-11-13-2 deploy-2017-11-01 deploy-2017-10-17 deploy-2017-10-17-try2 deploy-2017-10-10 deploy-2017-09-27 deploy-2017-09-22 deploy-2017-09-22-2 deploy-2017-09-21 deploy-2017-09-21-2 deploy-2017-09-19 deploy-2017-09-18 deploy-2017-09-05 deploy-2017-09-01 deploy-2017-09-01-2 deploy-2017-08-10 deploy-2017-07-27 deploy-2017-07-16 deploy-2017-06-22 deploy-2017-06-22-2 deploy-2017-06-17 deploy-2017-06-16 deploy-2017-05-17 deploy-2017-05-03 deploy-2017-04-27 deploy-2017-04-17 deploy-2017-04-10 deploy-2017-04-03 deploy-2017-04-03-2 deploy-2017-03-30 deploy-2017-03-28 deploy-2017-03-22 deploy-2017-03-15 deploy-2017-03-09 deploy-2017-03-06 deploy-2017-03-03 deploy-2017-03-01 deploy-2017-02-22 deploy-2017-02-14 deploy-2017-01-31 deploy-2017-01-25 deploy-2017-01-13 deploy-2016-12-21 deploy-2016-11-29 deploy-2016-11-16 deploy-2016-11-16-2 deploy-2016-11-01 deploy-2016-10-27 deploy-2016-10-24 deploy-2016-10-21 deploy-2016-10-21-5 deploy-2016-10-21-2 deploy-2016-10-19 deploy-2016-10-14 deploy-2016-10-12 deploy-2016-10-11 deploy-2016-09-29 deploy-2016-09-28 deploy-2016-08-04 deploy-2016-08-03 deploy-2016-08-03-try2 deploy-2016-07-20 deploy-2016-07-06 deploy-2016-06-15 deploy-2016-06-07 deploy-2016-05-25 deploy-2016-05-24 deploy-2016-05-20 deploy-2016-05-19 deploy-2016-05-19-2 deploy-2016-05-12 deploy-2016-04-26 deploy-2016-04-20 deploy-2016-04-18 deploy-2016-04-15 deploy-2016-04-14 deploy-2016-04-13.2 deploy-2016-04-13 deploy-2016-04-07 deploy-2016-04-01 deploy-2016-03-30 1.1.9 1.1.7 1.1.6 1.0.1 0.9.12 0.9.11
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (26 sloc) 1 KB
# Amara,
# Copyright (C) 2012 Participatory Culture Foundation
# This program 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.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# GNU Affero General Public License for more details.
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see
import htmllib, formatter
def unescape(s):
p = htmllib.HTMLParser(formatter.NullFormatter() )
# we need to preserve line breaks, nofill makes sure we don't
# loose them
p.nofill = True
return p.save_end().strip()