From 59406c41e7c3548d1c95a2091e2d676323494f62 Mon Sep 17 00:00:00 2001 From: Isaac Muse Date: Sun, 29 Jul 2018 12:44:18 -0600 Subject: Fix double escaping of amp in attributes (#670) Serializer should only escape & in attributes if not part of & Better regex avoid Unicode and `_` in amp detection. In general, we don't want to escape already escaped content, but with code content, we want literal representations of escaped content, so have code content explicitly escape its content before placing in AtomicStrings. Closes #669. --- tests/misc/amp-in-url.html | 1 - tests/misc/amp-in-url.txt | 1 - 2 files changed, 2 deletions(-) delete mode 100644 tests/misc/amp-in-url.html delete mode 100644 tests/misc/amp-in-url.txt (limited to 'tests/misc') diff --git a/tests/misc/amp-in-url.html b/tests/misc/amp-in-url.html deleted file mode 100644 index 2170a54..0000000 --- a/tests/misc/amp-in-url.html +++ /dev/null @@ -1 +0,0 @@ -

link

\ No newline at end of file diff --git a/tests/misc/amp-in-url.txt b/tests/misc/amp-in-url.txt deleted file mode 100644 index 471106e..0000000 --- a/tests/misc/amp-in-url.txt +++ /dev/null @@ -1 +0,0 @@ -[link](http://www.freewisdom.org/this&that) -- cgit v1.2.3