'Ruby array to file time stamps shouldn't be there

I am creating a parsing file that reads through some HTML files. The program opens up the files then sends certain lines to a method that replaces some of the information then sends it to an array.

But when I send the array to a file to be saved I am getting some weird output. Here is on of the lines of the text file.

\e[0;32;49mDaily 9:35\e[0m

In the method I am not putting in the \e[0;32;49m or the \e[0m.

Why are these characters being added to my output?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source