To stop malicious code from running in a user's web browser when data from an API is shown on a page, the application must perform output encoding, also commonly referred to as HTML escaping, on the API response data. This process converts specific characters within the data that have special meaning in HTML into their corresponding HTML entity equivalents. Special characters, such as the less-than sign (`<`), greater-than sign (`>`), ampersand (`&`), double quote (`"`), and si....
Log in to view the answer