Hướng dẫn thử thách
1 / 1
Implement an HTML Entity Converter
This lab is about converting special characters in a string with their corresponding HTML entities.
**Objective**: Fulfill the user stories below and get all the tests to pass to complete the lab.
**User Stories:**
1. You should have a `convertHTML` function that accepts a string as an argument.
1. The `convertHTML` function should return a new string by converting special characters in the argument string to their corresponding HTML entities.
- `&` should be converted to `&`.
- `<` should be converted to `<`.
- `>` should be converted to `>`.
- `"` should be converted to `"`.
- `'` should be converted to `'`.
Vượt qua bài kiểm tra hiện tại để mở khóa bài tiếp theo.
main.html
UTF-8 • Tab Size: 2Kiểm tra bài:⌘↵