Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 584 Bytes

README.md

File metadata and controls

9 lines (7 loc) · 584 Bytes

These files provide a solution to an often-posed problem: How does one convert ANSI/XTerm from a MUSH into HTML?

The solution is easy. There is only one function to call. example.php provides an example of how this project is intended to be used. The code only alters escape codes that match the regexp \e\[[0-9;]+m, transforming them to HTML span tags, and ignoring anything else. More technical details are provided in the code.

Written by Sketch@M*U*S*H (Ryan Dowell) with help from Mike@M*U*S*H (Mike Griffiths). Original Source: https://github.com/Sketch/ansi\_to\_html