Task: Implement HTML String Escaping Function
Task: Implement HTML String Escaping Function: a task in Terminal-Lego-15k (Harbor dataset). You need to implement a JavaScript function that escapes HTML special characters in strings to prevent XSS (Cross-Site Scripting) attacks and ensure safe display of arbitrary text content in HTML pages.
Part of PrimeIntellect/Terminal-Lego-15k.