human
Python code to make a string html safe.
assistant
Here is a Python code to make a string html safe

import string

def html_safe(s):
    """Make a string html safe."""
    return s.replace("<", "&lt;").replace(">", "&gt;")

# Enter the string
s = "<html><body><p></p></body></html>"

# Calling the function
print((html_safe(s)))

#Example Output
# &lt;html&gt;&lt;body&gt;&lt;p&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;

#Remember to inspect code for bugs.