Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Elixir
  3. phoenix_html

phoenix_html

MITElixir

Provides HTML safety, form abstractions, and JavaScript enhancements for Phoenix web applications.

GitHubGitHub
463 stars228 forks0 contributors

What is phoenix_html?

Phoenix.HTML is a library for the Phoenix web framework that provides essential tools for working with HTML in Elixir applications. It handles HTML safety to prevent XSS attacks, offers form-building abstractions, and includes a small JavaScript library for client-side enhancements. It solves the problem of secure and efficient HTML generation in server-rendered Phoenix applications.

Target Audience

Elixir developers building web applications with the Phoenix framework who need secure HTML rendering, form handling, and basic client-side interactivity.

Value Proposition

Developers choose Phoenix.HTML because it's the official, tightly integrated solution for HTML in Phoenix, offering built-in security, convenience for form management, and lightweight JavaScript enhancements without requiring external dependencies.

Overview

Building blocks for working with HTML in Phoenix

Use Cases

Best For

  • Building secure HTML templates in Phoenix applications
  • Creating and managing forms with server-side validation
  • Preventing XSS attacks through automatic HTML escaping
  • Adding basic JavaScript interactivity to Phoenix views
  • Developing server-rendered web applications with Elixir
  • Ensuring consistent HTML generation across Phoenix projects

Not Ideal For

  • Projects not using the Phoenix web framework
  • Applications requiring complex client-side interactivity or SPA architecture
  • Teams wanting pre-styled, drop-in UI components without custom CSS work

Pros & Cons

Pros

Automatic XSS Protection

Automatically escapes user input to prevent XSS attacks, ensuring secure HTML rendering by default as highlighted in the key features.

Convenient Form Abstractions

Provides helper functions for building and managing HTML forms, simplifying form creation and server-side validation in Phoenix applications.

Lightweight JavaScript Integration

Includes a tiny JavaScript library for basic client-side enhancements, reducing external dependencies while adding interactivity.

Tight Phoenix Integration

As a core Phoenix library, it seamlessly works with Phoenix components, following its convention-over-configuration philosophy.

Cons

Limited to Phoenix Ecosystem

Designed specifically for Phoenix, making it unusable for other Elixir web frameworks or non-Elixir projects, which restricts its applicability.

Minimal Front-End Features

The JavaScript library is basic and insufficient for complex front-end applications, often necessitating additional frameworks or tools.

No Built-in Styling

Focuses solely on HTML structure and safety, requiring developers to handle all CSS and styling separately, increasing initial setup effort.

Frequently Asked Questions

Quick Stats

Stars463
Forks228
Contributors0
Open Issues3
Last commit2 months ago
CreatedSince 2015

Tags

#form-helpers#javascript-integration#elixir#phoenix-framework#server-side-rendering#html-generation#xss-protection#web-development

Built With

E
Elixir

Included in

Elixir13.1k
Auto-fetched 18 hours ago

Related Projects

plugplug

Compose web applications with functions

Stars3,007
Forks608
Last commit1 day ago
surfacesurface

A server-side rendering component library for Phoenix

Stars2,136
Forks146
Last commit4 months ago
commandedcommanded

Use Commanded to build Elixir CQRS/ES applications

Stars2,018
Forks256
Last commit1 month ago
ex_adminex_admin

ExAdmin is an auto administration package for Elixir and the Phoenix Framework

Stars1,198
Forks265
Last commit6 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub