All Tracks/lab html entitiy converter/
Đang tải...
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 `&amp;`. - `<` should be converted to `&lt;`. - `>` should be converted to `&gt;`. - `"` should be converted to `&quot;`. - `'` should be converted to `&apos;`.
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:⌘↵
Test Output
Thử thách này không có bài test tự động. Hãy quan sát kết quả trực tiếp ở khung Preview.