Docs Menu
API Developer Guide / middleware / pub / string / htmlEncode

Service: htmlEncode

This service will ensure that HTML text will be correctly displayed in the browser, not interpreted by the browser as HTML.

Input Parameter:

Name Type Description
text: String Input HTML text

Output Parameter:

Name Type Description
result: String HTML displayed on the browser as string without getting executed.