Skip to content

cakemail/Tidy-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install

Dependencies

Gems:

  • nokogiri
  • sinatra
  • json

Nokogiri also requires:

  • libxslt-dev
  • libxml2-dev

Configs

Set environment variable RACK_ENV to production if in production. This will make the API listen on port 80 instead of port 4567.

API Documentation

POST /clean

Parameters

Required

  • String html
    • HTML content to be cleaned.

Response

{
    "html": "<form style=\"opacity: 0.5; color: red;\"><button>submit</button></form>",
}

About

Simple REST wrapper around the Tidy library

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 5