Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

Commandcracker/cc-htmlEntities

Repository files navigation

htmlEntities for ComputerCraft

HTML entities decoding/encoding for ComputerCraft.

Based on htmlEntities-for-lua.

Features

  • Fast!
  • No dependencies!
  • Easy to implement!

Changes

Installation

soon™

Example

local htmlEntities = require('htmlEntities')
print(htmlEntities.encode('Commandcracker'))
print(htmlEntities.decode('Tiago Danin :)'))

Documentation

API

Function Info
htmlEntities Return table with information about module
htmlEntities.decode(input) Decode HTML entities
htmlEntities.encode(input) Encode in HTML entities (in ASCII) NOTE: Emoji is not supported here!
htmlEntities.ASCII_HEX(input) Decode ASCII HEX
htmlEntities.ASCII_DEC(input) Decode ASCII DEC

Tests

To run the test suite:

# Lua
lua tests/cli.lua
# Or
lua tests/travis.lua

Contributors

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

License

MIT © Tiago Danin, Commandcracker

About

HTML entities decoding/encoding for ComputerCraft.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published