Merge branch 'master' into staging
Conflicts: seed/challenges/basic-bonfires.json
This commit is contained in:
@ -12,6 +12,7 @@ var links =
|
|||||||
"Currying": "https://leanpub.com/javascript-allonge/read#pabc",
|
"Currying": "https://leanpub.com/javascript-allonge/read#pabc",
|
||||||
"Smallest Common Multiple": "https://www.mathsisfun.com/least-common-multiple.html",
|
"Smallest Common Multiple": "https://www.mathsisfun.com/least-common-multiple.html",
|
||||||
"Permutations": "https://www.mathsisfun.com/combinatorics/combinations-permutations.html",
|
"Permutations": "https://www.mathsisfun.com/combinatorics/combinations-permutations.html",
|
||||||
|
"HTML Entities": "http://dev.w3.org/html5/html-author/charref",
|
||||||
|
|
||||||
// ========= GLOBAL OBJECTS
|
// ========= GLOBAL OBJECTS
|
||||||
"Global Array Object" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array",
|
"Global Array Object" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array",
|
||||||
|
@ -1093,7 +1093,7 @@
|
|||||||
"dashedName": "bonfire-convert-html-entities",
|
"dashedName": "bonfire-convert-html-entities",
|
||||||
"difficulty": "2.07",
|
"difficulty": "2.07",
|
||||||
"description": [
|
"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 <a href='/field-guide/how-do-i-get-help-when-I-get-stuck' target='_blank'>RSAP</a> if you get stuck. Try to pair program. Write your own code."
|
"Remember to use <a href='/field-guide/how-do-i-get-help-when-I-get-stuck' target='_blank'>RSAP</a> if you get stuck. Try to pair program. Write your own code."
|
||||||
],
|
],
|
||||||
"challengeSeed": [
|
"challengeSeed": [
|
||||||
@ -1110,10 +1110,12 @@
|
|||||||
"assert.strictEqual(convert('Sixty > twelve'), 'Sixty > twelve', 'should escape characters');",
|
"assert.strictEqual(convert('Sixty > twelve'), 'Sixty > twelve', 'should escape characters');",
|
||||||
"assert.strictEqual(convert('Stuff in \"quotation marks\"'), 'Stuff in "quotation marks"', 'should escape characters');",
|
"assert.strictEqual(convert('Stuff in \"quotation marks\"'), 'Stuff in "quotation marks"', 'should escape characters');",
|
||||||
"assert.strictEqual(convert(\"Shindler's List\"), 'Shindler's List', 'should escape characters');",
|
"assert.strictEqual(convert(\"Shindler's List\"), 'Shindler's List', 'should escape characters');",
|
||||||
|
"assert.strictEqual('<input type=\"submit\">Submit</input>', '<input type="submit">Submit</input>', 'should escape characters');",
|
||||||
"assert.strictEqual(convert('abc'), 'abc', 'should handle strings with nothing to escape');"
|
"assert.strictEqual(convert('abc'), 'abc', 'should handle strings with nothing to escape');"
|
||||||
],
|
],
|
||||||
"MDNlinks": [
|
"MDNlinks": [
|
||||||
"RegExp"
|
"RegExp",
|
||||||
|
"HTML Entities"
|
||||||
],
|
],
|
||||||
"challengeType": 5,
|
"challengeType": 5,
|
||||||
"nameCn": "",
|
"nameCn": "",
|
||||||
|
Reference in New Issue
Block a user