Gems:
- nokogiri
- sinatra
- json
Nokogiri also requires:
- libxslt-dev
- libxml2-dev
Set environment variable RACK_ENV
to production
if in production. This will make the API listen on port 80 instead of port 4567.
- String
html
- HTML content to be cleaned.
{
"html": "<form style=\"opacity: 0.5; color: red;\"><button>submit</button></form>",
}