Simplifies logic for html.