From 2ec36848253763b864b1fa54c13bbdf01613631f Mon Sep 17 00:00:00 2001 From: Rex Schrader Date: Thu, 18 Jun 2015 10:01:43 -0700 Subject: [PATCH 1/3] Add w3.org reference for HTML Entities --- seed_data/bonfireMDNlinks.js | 1 + 1 file changed, 1 insertion(+) diff --git a/seed_data/bonfireMDNlinks.js b/seed_data/bonfireMDNlinks.js index 9a9ea86741..bedd51b2db 100644 --- a/seed_data/bonfireMDNlinks.js +++ b/seed_data/bonfireMDNlinks.js @@ -12,6 +12,7 @@ var links = "Currying": "https://leanpub.com/javascript-allonge/read#pabc", "Smallest Common Multiple": "https://www.mathsisfun.com/least-common-multiple.html", "Permutations": "https://www.mathsisfun.com/combinatorics/combinations-permutations.html", + "HTML Entities": "http://dev.w3.org/html5/html-author/charref", // ========= GLOBAL OBJECTS "Global Array Object" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array", From 7540fe935190cd88129e5ff04c2260c3ebbbc6ae Mon Sep 17 00:00:00 2001 From: Rex Schrader Date: Thu, 18 Jun 2015 10:30:06 -0700 Subject: [PATCH 2/3] Additional test, HTML Entities Link, Clarify Text --- seed_data/challenges/basic-bonfires.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/seed_data/challenges/basic-bonfires.json b/seed_data/challenges/basic-bonfires.json index 6033a8937e..5c62a354b1 100644 --- a/seed_data/challenges/basic-bonfires.json +++ b/seed_data/challenges/basic-bonfires.json @@ -1065,7 +1065,7 @@ "name": "Bonfire: Convert HTML Entities", "difficulty": "2.07", "description": [ - "Convert the characters \"&\", \"<\", \">\", '\"', and \"'\", in a string to their corresponding HTML entities.", + "Convert the characters \"&\", \"<\", \">\", '\"' (double quote), and \"'\" (apostrophe), in a string to their corresponding HTML entities.", "Remember to use RSAP if you get stuck. Try to pair program. Write your own code." ], "challengeSeed": [ @@ -1078,10 +1078,12 @@ ], "tests": [ "assert.strictEqual(convert('Dolce & Gabbana'), 'Dolce & Gabbana', 'should escape characters');", + "assert.strictEqual('Submit', '<input type="submit">Submit</input>', 'should escape characters');", "assert.strictEqual(convert('abc'), 'abc', 'should handle strings with nothing to escape');" ], "MDNlinks": [ - "RegExp" + "RegExp", + "HTML Entities" ], "challengeType": 5, "nameCn": "", From 7a510d6bc626b830fbf6451757c6b78c80491047 Mon Sep 17 00:00:00 2001 From: Rex Schrader Date: Thu, 18 Jun 2015 10:33:34 -0700 Subject: [PATCH 3/3] Add w3.org reference for HTML Entities --- seed_data/bonfireMDNlinks.js | 1 + 1 file changed, 1 insertion(+) diff --git a/seed_data/bonfireMDNlinks.js b/seed_data/bonfireMDNlinks.js index 9a9ea86741..bedd51b2db 100644 --- a/seed_data/bonfireMDNlinks.js +++ b/seed_data/bonfireMDNlinks.js @@ -12,6 +12,7 @@ var links = "Currying": "https://leanpub.com/javascript-allonge/read#pabc", "Smallest Common Multiple": "https://www.mathsisfun.com/least-common-multiple.html", "Permutations": "https://www.mathsisfun.com/combinatorics/combinations-permutations.html", + "HTML Entities": "http://dev.w3.org/html5/html-author/charref", // ========= GLOBAL OBJECTS "Global Array Object" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array",