The simplest way for detecting HTML content.
fast and safe way to escape and unescape &<>'" chars
hast utility to serialize to HTML
List of HTML void tag names
micromark utility with list of html tag names
remark plugin that turns markdown into HTML to support rehype
Clean up user-submitted HTML, preserving allowlisted elements and allowlisted attributes on a per-element basis
Map of URL attributes in HTML
Sniff the encoding from a HTML byte stream
Neo-Async is a drop-in replacement for Async, it almost fully covers its functionality and runs faster
hast utility to parse from HTML
A JavaScript library for escaping CSS strings and identifiers while generating the shortest possible ASCII-only output.
Parses well-formed HTML (meaning all tags closed) into an AST and back. quickly.
A very fast HTML parser, generating a simplified DOM, with basic element query support.
Compare strings containing a mix of letters and numbers in the way a human being would in sort order.
Info on the properties and attributes of the web platform
Advanced html to plain text converter
hast utility that turns HTML into a syntax tree (while being small in browsers)
Map of invalid numeric character references to their replacements, according to HTML
HTML templates literals in JavaScript
A robust HTML entities encoder/decoder with full Unicode support.
Format data using ECMA-376 spreadsheet Format Codes
List of legacy HTML named character references that don’t need a trailing semicolon
Pretty print JavaScript data types in the terminal and the browser
Inject content into an existing HTML document.
Take any arbitrary HTML as input and extract its content as a list of records, including contents and hierarchy.
Draft.js is a framework for building rich text editors. However, it does not support exporting documents at HTML. This gem is designed to take the raw `ContentState` (output of `convertToRaw`) from Draft.js and convert it to HTML using Ruby.
cg is A Ruby based contents generator
Takes some content and parses it depending of the format your specify (HTML or Markdown)
Distillery extracts the "content" portion out of an HTML document. It applies heuristics based on element type, location, class/id name and other attributes to try and find the content part of the HTML document and return it.
Given an html document or fragment this gem will build a summary of the content.
Converts HTML text to Rich Text Contentful specific JSON structure
This gem could extract the real content of and HTML article based on weight of words in HTML dom nodes.
Pismo extracts and retrieves content-related metadata from HTML pages - you can use the resulting data in an organized way, such as a summary/first paragraph, body text, keywords, RSS feed URL, favicon, etc.
Gem to rag-adjust text content based on Mark Boulton's 24ways article: http://24ways.org/2013/run-ragged/ and Nathan Ford's JS implementation: https://github.com/nathanford/ragadjust
Convert quill content to html for wakuwaku