fixes the Advanced Code Solution to make it work when run tests in the Convert HTML Entities exercise (#24930)

* fix in the Advanced Code Solution to make it work when run tests

* making htmlEntities a const to fix the example
This commit is contained in:
Pablo Rubianes
2018-10-25 17:41:36 -03:00
committed by Randell Dawson
parent a2e01e59db
commit 5c2bd53d5c
6 changed files with 6 additions and 6 deletions

View File

@ -110,7 +110,7 @@ localeTitle: تحويل كيانات HTML
` function convertHTML(str) { ` function convertHTML(str) {
// Use Object Lookup to declare as many HTML entities as needed. // Use Object Lookup to declare as many HTML entities as needed.
htmlEntities={ const htmlEntities={
'&':'&', '&':'&',
'<':'&lt;', '<':'&lt;',
'>':'&gt;', '>':'&gt;',

View File

@ -112,7 +112,7 @@ function convertHTML(str) {
```javascript ```javascript
function convertHTML(str) { function convertHTML(str) {
// Use Object Lookup to declare as many HTML entities as needed. // Use Object Lookup to declare as many HTML entities as needed.
htmlEntities={ const htmlEntities={
'&':'&amp;', '&':'&amp;',
'<':'&lt;', '<':'&lt;',
'>':'&gt;', '>':'&gt;',

View File

@ -107,7 +107,7 @@ Explain solution here and add any relevant links
```javascript ```javascript
function convertHTML(str) { function convertHTML(str) {
// Use Object Lookup to declare as many HTML entities as needed. // Use Object Lookup to declare as many HTML entities as needed.
htmlEntities={ const htmlEntities={
'&':'&amp;', '&':'&amp;',
'<':'&lt;', '<':'&lt;',
'>':'&gt;', '>':'&gt;',

View File

@ -112,7 +112,7 @@ Explique a solução aqui e adicione links relevantes
```javascript ```javascript
function convertHTML(str) { function convertHTML(str) {
// Use Object Lookup to declare as many HTML entities as needed. // Use Object Lookup to declare as many HTML entities as needed.
htmlEntities={ const htmlEntities={
'&':'&amp;', '&':'&amp;',
'<':'&lt;', '<':'&lt;',
'>':'&gt;', '>':'&gt;',

View File

@ -112,7 +112,7 @@ function convertHTML(str) {
```javascript ```javascript
function convertHTML(str) { function convertHTML(str) {
// Use Object Lookup to declare as many HTML entities as needed. // Use Object Lookup to declare as many HTML entities as needed.
htmlEntities={ const htmlEntities={
'&':'&amp;', '&':'&amp;',
'<':'&lt;', '<':'&lt;',
'>':'&gt;', '>':'&gt;',

View File

@ -112,7 +112,7 @@ Explica la solución aquí y agrega cualquier enlace relevante.
```javascript ```javascript
function convertHTML(str) { function convertHTML(str) {
// Use Object Lookup to declare as many HTML entities as needed. // Use Object Lookup to declare as many HTML entities as needed.
htmlEntities={ const htmlEntities={
'&':'&amp;', '&':'&amp;',
'<':'&lt;', '<':'&lt;',
'>':'&gt;', '>':'&gt;',