This script will convert text with mIRC color codes to HTML equivalent.

Enter text:
Preview:


Source: