diff options
author | Björn Gustavsson <[email protected]> | 2010-08-20 14:48:20 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2010-08-20 14:52:19 +0200 |
commit | db6d8ec0a58316aa8fa6bf8d6a91be5996459b84 (patch) | |
tree | dff4cc980eb490ac4ec5348cfae44cace90bf3be /lib/tools/src/cover.erl | |
parent | a8cb57910fa455b2b2e6a0babb38549abd177934 (diff) | |
parent | acc2dce9095b4218e1ffaf6da25fbd581f8b1d38 (diff) | |
download | otp-db6d8ec0a58316aa8fa6bf8d6a91be5996459b84.tar.gz otp-db6d8ec0a58316aa8fa6bf8d6a91be5996459b84.tar.bz2 otp-db6d8ec0a58316aa8fa6bf8d6a91be5996459b84.zip |
Merge branch 'tm/fix-cover-html-escaping' into dev
* tm/fix-cover-html-escaping:
Fix cover's HTML-generation logic to escape ampersands in source code
OTP-8776
Diffstat (limited to 'lib/tools/src/cover.erl')
-rw-r--r-- | lib/tools/src/cover.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/tools/src/cover.erl b/lib/tools/src/cover.erl index 6501e05a6e..c4d1bd1d2f 100644 --- a/lib/tools/src/cover.erl +++ b/lib/tools/src/cover.erl @@ -2174,6 +2174,8 @@ escape_lt_and_gt1([$<|T],Acc) -> escape_lt_and_gt1(T,[$;,$t,$l,$&|Acc]); escape_lt_and_gt1([$>|T],Acc) -> escape_lt_and_gt1(T,[$;,$t,$g,$&|Acc]); +escape_lt_and_gt1([$&|T],Acc) -> + escape_lt_and_gt1(T,[$;,$p,$m,$a,$&|Acc]); escape_lt_and_gt1([],Acc) -> lists:reverse(Acc); escape_lt_and_gt1([H|T],Acc) -> |